# Debian Buster is recommended FROM syping/llvm-mingw-debian:10.0 # 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.12 ENV QT_BUILD 8 ENV LIBJPEGTURBO_VERSION 2.0.4 ENV LIBRESSL_VERSION 3.0.2 ENV OPENSSL_VERSION 1.1.1f ENV ICU_VERSION 66.1 ENV UPX_VERSION 3.96 # 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_SHARED NO ENV BUILD_MINGW64_SHARED NO ############################## # DON'T EDIT BELOW THIS LINE # ############################## COPY qt_build /opt/qt_build/bin/ COPY qmake-static /usr/local/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 upx 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}_s/bin/qmake && \ qtchooser -install -f qt5-i686-w64-mingw32 ${PREFIX_DIR}/lib/i686-w64-mingw32/qt_${QT_SERIES}.${QT_BUILD}_s/bin/qmake && \ qtchooser -install -f 5 ${PREFIX_DIR}/lib/x86_64-w64-mingw32/qt_${QT_SERIES}.${QT_BUILD}_s/bin/qmake && \ qtchooser -install -f qt5 ${PREFIX_DIR}/lib/x86_64-w64-mingw32/qt_${QT_SERIES}.${QT_BUILD}_s/bin/qmake && \ qtchooser -install -f default ${PREFIX_DIR}/lib/x86_64-w64-mingw32/qt_${QT_SERIES}.${QT_BUILD}_s/bin/qmake && \ ln -s ${PREFIX_DIR}/lib/i686-w64-mingw32/libjpeg-turbo-${LIBJPEGTURBO_VERSION}_s ${PREFIX_DIR}/lib/i686-w64-mingw32/libjpeg-turbo && \ ln -s ${PREFIX_DIR}/lib/x86_64-w64-mingw32/libjpeg-turbo-${LIBJPEGTURBO_VERSION}_s ${PREFIX_DIR}/lib/x86_64-w64-mingw32/libjpeg-turbo && \ ln -s ${PREFIX_DIR}/lib/i686-w64-mingw32/openssl-${OPENSSL_VERSION}_s ${PREFIX_DIR}/lib/i686-w64-mingw32/openssl && \ ln -s ${PREFIX_DIR}/lib/x86_64-w64-mingw32/openssl-${OPENSSL_VERSION}_s ${PREFIX_DIR}/lib/x86_64-w64-mingw32/openssl && \ ln -s ${PREFIX_DIR}/lib/i686-w64-mingw32/qt_${QT_SERIES}.${QT_BUILD}_s ${PREFIX_DIR}/lib/i686-w64-mingw32/qt5 && \ ln -s ${PREFIX_DIR}/lib/x86_64-w64-mingw32/qt_${QT_SERIES}.${QT_BUILD}_s ${PREFIX_DIR}/lib/x86_64-w64-mingw32/qt5 CMD ["/bin/bash"]