From 71cd50aa880b143fc8bf469139f35f67626db3b6 Mon Sep 17 00:00:00 2001 From: Mathias Date: Fri, 2 Oct 2026 17:19:06 +0200 Subject: [PATCH] fix(docker): install xz in the ffmpeg stage -- the golang image has none; found by building the image, which CI does not do on a pull request (second review) Co-Authored-By: Claude Sonnet 5.5 --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 7f37883..3fb2f60 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,7 +36,11 @@ FROM golang:1.26 AS ffmpeg ARG FFMPEG_VERSION=7.0.2 ARG FFMPEG_SHA256=abda8d77ce8309141f83ab8edf0596834087c52467f6badf376a6a2a4c87cf67 +# xz is not in the golang image (found by building it: `tar: xz: Cannot exec`). RUN set -eu; \ + apt-get update; \ + apt-get install -y --no-install-recommends xz-utils; \ + rm -rf /var/lib/apt/lists/*; \ mkdir -p /out; \ for dir in releases old-releases; do \ curl -fsSL -o /out/ffmpeg.tar.xz "https://johnvansickle.com/ffmpeg/${dir}/ffmpeg-${FFMPEG_VERSION}-amd64-static.tar.xz" && break; \