# Debian Buster is recommended FROM syping/llvm-mingw-debian:10.0.1 # Custom Directory ENV CUSTOM_DIRECTORY YES ENV BUILD_DIR /temp/build ENV SOURCE_DIR /temp/src ENV PREFIX_DIR /usr/local ENV QT_SHARE_DIR /usr/local/share ENV QT_SYSCONF_DIR /etc/xdg # Custom Version ENV CUSTOM_VERSION YES ENV QT_SERIES 5.15 ENV QT_BUILD 0 ENV ZLIB_VERSION 1.2.11 ENV LIBPNG_VERSION 1.6.37 ENV LIBJPEGTURBO_VERSION 2.0.5 ENV LIBRESSL_VERSION 3.1.3 ENV OPENSSL_VERSION 1.1.1g ENV ICU_VERSION 67.1 ENV HB_VERSION 2.7.0 # SSL Choice ENV CUSTOM_SSL YES ENV USE_OPENSSL YES ENV CUSTOM_OPENSSL_INSTALL YES # Compiler Choice ENV MINGW_USE_CLANG YES # MinGW sets used ENV BUILD_MINGW32_STATIC NO ENV BUILD_MINGW64_STATIC NO ############################## # DON'T EDIT BELOW THIS LINE # ############################## WORKDIR / COPY qt_build /opt/qt_build/bin/ RUN rm -f /bin/sh && \ ln -s /bin/bash /bin/sh RUN export PATH=/opt/llvm-mingw/bin:${PATH} && \ apt-get update && \ apt-get install -y bash cmake coreutils g++ git gzip make nasm ninja-build perl python qtchooser tar wget xz-utils zlib1g zlib1g-dev && \ rm -rf /temp && \ /opt/qt_build/bin/qt_build && \ rm -rf /temp && \ apt-get remove -y cmake g++ libucl-dev nasm ninja-build perl python zlib1g-dev && \ apt-get autoremove -y && \ rm -rf /var/lib/apt/lists/* RUN qtchooser -install -f qt5-x86_64-w64-mingw32 ${PREFIX_DIR}/lib/x86_64-w64-mingw32/qt_${QT_SERIES}.${QT_BUILD}_d/bin/qmake && \ qtchooser -install -f qt5-i686-w64-mingw32 ${PREFIX_DIR}/lib/i686-w64-mingw32/qt_${QT_SERIES}.${QT_BUILD}_d/bin/qmake && \ qtchooser -install -f 5 ${PREFIX_DIR}/lib/x86_64-w64-mingw32/qt_${QT_SERIES}.${QT_BUILD}_d/bin/qmake && \ qtchooser -install -f qt5 ${PREFIX_DIR}/lib/x86_64-w64-mingw32/qt_${QT_SERIES}.${QT_BUILD}_d/bin/qmake && \ qtchooser -install -f default ${PREFIX_DIR}/lib/x86_64-w64-mingw32/qt_${QT_SERIES}.${QT_BUILD}_d/bin/qmake && \ ln -s ${PREFIX_DIR}/lib/i686-w64-mingw32/zlib-${ZLIB_VERSION} ${PREFIX_DIR}/lib/i686-w64-mingw32/zlib && \ ln -s ${PREFIX_DIR}/lib/x86_64-w64-mingw32/zlib-${ZLIB_VERSION} ${PREFIX_DIR}/lib/x86_64-w64-mingw32/zlib && \ ln -s ${PREFIX_DIR}/lib/i686-w64-mingw32/libpng-${LIBPNG_VERSION} ${PREFIX_DIR}/lib/i686-w64-mingw32/libpng && \ ln -s ${PREFIX_DIR}/lib/x86_64-w64-mingw32/libpng-${LIBPNG_VERSION} ${PREFIX_DIR}/lib/x86_64-w64-mingw32/libpng && \ ln -s ${PREFIX_DIR}/lib/i686-w64-mingw32/libjpeg-turbo-${LIBJPEGTURBO_VERSION} ${PREFIX_DIR}/lib/i686-w64-mingw32/libjpeg-turbo && \ ln -s ${PREFIX_DIR}/lib/x86_64-w64-mingw32/libjpeg-turbo-${LIBJPEGTURBO_VERSION} ${PREFIX_DIR}/lib/x86_64-w64-mingw32/libjpeg-turbo && \ ln -s ${PREFIX_DIR}/lib/i686-w64-mingw32/openssl-${OPENSSL_VERSION}_d ${PREFIX_DIR}/lib/i686-w64-mingw32/openssl && \ ln -s ${PREFIX_DIR}/lib/x86_64-w64-mingw32/openssl-${OPENSSL_VERSION}_d ${PREFIX_DIR}/lib/x86_64-w64-mingw32/openssl && \ ln -s ${PREFIX_DIR}/lib/i686-w64-mingw32/qt_${QT_SERIES}.${QT_BUILD}_d ${PREFIX_DIR}/lib/i686-w64-mingw32/qt5 && \ ln -s ${PREFIX_DIR}/lib/x86_64-w64-mingw32/qt_${QT_SERIES}.${QT_BUILD}_d ${PREFIX_DIR}/lib/x86_64-w64-mingw32/qt5 CMD ["/bin/bash"]