# syntax=docker/dockerfile:1 # The Windows build of the small FFmpeg that Shutter Vault Hub ships. # # docker build --output type=local,dest=installer/ffmpeg/out installer/ffmpeg # # leaves installer/ffmpeg/out/ffmpeg.exe, its licence texts and BUILD-INFO.json. # # Everything is pinned so anyone gets the same file: the base image by digest, # the compiler packages by a dated Debian snapshot, the FFmpeg source by # SHA-256 (in build-ffmpeg.sh). Put ffmpeg-.tar.xz beside this file # to build without a download; otherwise the script fetches it from ffmpeg.org. FROM debian:trixie-slim@sha256:a72b4433de1cf7d6bae0c4cee74d0547f58601a643b3375f070c51600d63b6b2 AS build ARG DEBIAN_SNAPSHOT=20261104T212339Z RUN sed -i \ -e "s|http://deb.debian.org/debian-security|http://snapshot.debian.org/archive/debian-security/${DEBIAN_SNAPSHOT}|" \ -e "s|http://deb.debian.org/debian|http://snapshot.debian.org/archive/debian/${DEBIAN_SNAPSHOT}|" \ /etc/apt/sources.list.d/debian.sources \ && apt-get -o Acquire::Check-Valid-Until=false -o Acquire::Retries=5 update \ && apt-get install -y --no-install-recommends \ gcc-mingw-w64-x86-64-win32 binutils-mingw-w64-x86-64 mingw-w64-x86-64-dev \ gcc libc6-dev nasm make ca-certificates curl xz-utils diffutils \ && rm -rf /var/lib/apt/lists/* WORKDIR /recipe COPY . /recipe/ ENV FFMPEG_WORK_DIR=/work RUN bash /recipe/build-ffmpeg.sh win32-x64 /out \ && dpkg-query -W -f='${Package} ${Version}\n' gcc-mingw-w64-x86-64-win32 binutils-mingw-w64-x86-64 mingw-w64-x86-64-dev gcc libc6-dev nasm make >/out/toolchain-packages.txt FROM scratch COPY --from=build /out/ /