Files
docker-qt/windows/Dockerfile

31 lines
884 B
Docker
Raw Normal View History

2018-08-03 18:12:06 -05:00
FROM ubuntu:16.04
2019-03-11 19:27:11 -05:00
ENTRYPOINT ["/bin/bash"]
2019-11-18 21:03:58 -05:00
2017-06-05 11:39:28 -05:00
RUN \
apt -y update && \
apt -y upgrade && \
2017-10-03 16:50:32 -05:00
apt -y install build-essential iputils-ping nano \
2017-10-03 16:48:37 -05:00
autoconf automake autopoint bash bison bzip2 flex gettext \
git g++ gperf intltool libffi-dev libgdk-pixbuf2.0-dev \
2019-11-18 21:03:58 -05:00
libtool-bin libltdl-dev libssl-dev libxml-parser-perl lzip make \
2017-10-03 16:48:37 -05:00
openssl p7zip-full patch perl pkg-config python ruby scons \
sed unzip wget xz-utils \
2017-10-03 16:49:51 -05:00
g++-multilib libc6-dev-i386 && \
2017-06-05 11:39:28 -05:00
apt -y autoremove && \
apt -y autoclean && \
2017-10-03 16:48:37 -05:00
apt -y clean && \
2019-11-18 21:03:58 -05:00
exit 0
RUN \
2017-06-05 11:39:28 -05:00
cd /opt && \
git clone https://github.com/mxe/mxe.git && \
2018-08-03 18:12:06 -05:00
cd /opt/mxe && \
2018-08-03 17:40:12 -05:00
NPROC=$(($(nproc)+4)) && \
2017-11-16 17:06:40 -06:00
make --jobs=$NPROC JOBS=$NPROC MXE_TARGETS='i686-w64-mingw32.static' qtbase qtmultimedia && \
2017-11-16 17:10:16 -06:00
ln -s /opt/mxe/usr/bin/i686-w64-mingw32.static-qmake-qt5 /usr/bin/qmake && \
qmake --version && \
2017-06-05 11:39:28 -05:00
exit 0
2019-11-18 21:03:58 -05:00
2017-06-05 11:39:28 -05:00
ENV PATH="${PATH}:/opt/mxe/usr/bin"
2019-11-18 21:03:58 -05:00