# The toolchain that builds LudicoAI's ffmpeg.exe and ffprobe.exe (native/ffmpeg/build.sh): Debian 13 "trixie"
# as it was on a fixed date (snapshot.debian.org), with the mingw-w64 cross compiler for 64-bit Windows, nasm,
# meson and ninja. The base image is pinned by its digest and the packages by the snapshot date, so the same
# compilers are installed every time.
FROM debian@sha256:a72b4433de1cf7d6bae0c4cee74d0547f58601a643b3375f070c51600d63b6b2

ARG SNAPSHOT=20261101T000000Z

RUN rm -f /etc/apt/sources.list.d/debian.sources \
 && echo "deb [check-valid-until=no] http://snapshot.debian.org/archive/debian/${SNAPSHOT} trixie main" > /etc/apt/sources.list \
 && echo "deb [check-valid-until=no] http://snapshot.debian.org/archive/debian-security/${SNAPSHOT} trixie-security main" >> /etc/apt/sources.list \
 && apt-get update \
 && apt-get install -y --no-install-recommends \
        gcc-mingw-w64-x86-64-win32 binutils-mingw-w64-x86-64 mingw-w64-x86-64-dev \
        nasm make pkgconf meson ninja-build xz-utils ca-certificates \
 && rm -rf /var/lib/apt/lists/*
