FFmpeg-Builds/images/base-win64/Dockerfile

23 lines
796 B
Docker
Raw Normal View History

2020-09-03 01:13:45 +00:00
FROM btbn/ffmpeg-builder:base
2020-09-01 21:17:10 +00:00
ENV DEBIAN_FRONTEND noninteractive
RUN \
apt-get -y install mingw-w64 && \
2020-09-03 20:49:43 +00:00
apt-get -y clean && \
rm /usr/lib/gcc/*-w64-mingw32/*/libstdc++*.dll* && \
rm /usr/lib/gcc/*-w64-mingw32/*/libgcc_s* && \
mkdir /opt/ffbuild
2020-09-02 16:07:59 +00:00
2020-09-03 20:49:43 +00:00
ADD toolchain.cmake /toolchain.cmake
ENV FFBUILD_TARGET_FLAGS="--pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32" \
2020-09-03 20:49:43 +00:00
FFBUILD_TOOLCHAIN=x86_64-w64-mingw32 \
FFBUILD_CROSS_PREFIX=x86_64-w64-mingw32- \
FFBUILD_PREFIX=/opt/ffbuild \
FFBUILD_CMAKE_TOOLCHAIN=/toolchain.cmake \
PKG_CONFIG_LIBDIR=/opt/ffbuild/lib/pkgconfig \
CFLAGS="-static-libgcc -static-libstdc++" \
CXXFLAGS="-static-libgcc -static-libstdc++" \
LDFLAGS="-static-libgcc -static-libstdc++"