2018-12-22 17:19:09 +00:00
|
|
|
From ubuntu:18.04
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get upgrade -y && \
|
|
|
|
apt-get install -y \
|
|
|
|
autoconf \
|
|
|
|
automake \
|
|
|
|
git \
|
|
|
|
libtool-bin \
|
|
|
|
make \
|
|
|
|
cmake \
|
|
|
|
wget \
|
|
|
|
unzip \
|
|
|
|
python \
|
|
|
|
bzip2 \
|
|
|
|
pkg-config \
|
|
|
|
libx11-xcb1 \
|
|
|
|
libgl1-mesa-glx \
|
|
|
|
libglib2.0-0 \
|
|
|
|
openjdk-8-jdk
|
|
|
|
|
|
|
|
RUN mkdir -p /android
|
2018-12-23 23:22:02 +00:00
|
|
|
ADD qt-opensource-linux-x64-5.*.run /android/
|
|
|
|
ADD android-ndk-r*-linux-x86_64.zip /android/
|
2018-12-22 17:19:09 +00:00
|
|
|
ADD android-build-wrapper.sh variables.sh qt-installer-noninteractive.qs /android/
|
|
|
|
|
|
|
|
RUN cd /android && bash -x /android/android-build-wrapper.sh -prep-only && \
|
2018-12-23 23:22:02 +00:00
|
|
|
rm -f qt-opensource-linux-x64-*.run android-ndk-r*-linux-x86_64.zip && \
|
|
|
|
rm -rf android-sdk-linux/emulator Qt/[a-zA-Z]* && \
|
2018-12-22 17:19:09 +00:00
|
|
|
rm -rf $( find android-ndk*/platforms -name arch-mips -o -name arch-x86 ) && \
|
2018-12-23 23:22:02 +00:00
|
|
|
rm -rf android-ndk*/toolchains/x86-* android-ndk*/toolchains/llvm/prebuilt/x86-* && \
|
2018-12-22 17:19:09 +00:00
|
|
|
ls -l && \
|
|
|
|
du -sh *
|