# The Linux container mediaext/ffmpeg/build-windows.ps1 cross-builds the Windows
# ffmpeg in. The base is pinned by digest and every package comes from one dated
# Debian snapshot, whose signed index apt checks each download against, so this
# file always yields the same tools. gcc and libc6-dev are the build machine's
# own compiler, which ffmpeg's configure needs for the host tools it runs during
# the build. llvm-mingw, zlib, ffmpeg and dav1d are not in the image: the build
# mounts them, checked against versions.env and versions-windows.env.
FROM debian:bookworm-slim@sha256:7c7b2c966bc9ee8cedfeef67e0e279108992c77681fa595db4a9d65c06ccc587
ARG SNAPSHOT=20261001T000000Z
RUN rm -f /etc/apt/sources.list.d/debian.sources \
 && printf 'deb http://snapshot.debian.org/archive/debian/%s bookworm main\n' "$SNAPSHOT" > /etc/apt/sources.list \
 && apt-get -o Acquire::Check-Valid-Until=false update \
 && apt-get install -y --no-install-recommends gcc libc6-dev make nasm meson ninja-build pkgconf python3 xz-utils \
 && rm -rf /var/lib/apt/lists/*
