diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2019-05-17 15:55:17 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-05-18 14:43:16 -0700 |
commit | d1750b3fb36cc7fb56ef57816dd161c3effffc07 (patch) | |
tree | 74b01a2478f3a897874e201b87ede7b5d82a2550 /scripts | |
parent | 3debd927345edef6363cb6636f8d240dbdd09dda (diff) | |
download | subsurface-d1750b3fb36cc7fb56ef57816dd161c3effffc07.tar.gz |
MXE Docker build: clean up Dockerfile
Instead of trying to do it all in one step rely on --squash to do its
job. Don't try to be so aggressive in removing things, it saves very
little space and caused builds to fail.
This results in version 0.9 of the MXE build container
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/docker/mxe-build-container/Dockerfile | 48 |
1 files changed, 13 insertions, 35 deletions
diff --git a/scripts/docker/mxe-build-container/Dockerfile b/scripts/docker/mxe-build-container/Dockerfile index ec55b1e22..346565300 100644 --- a/scripts/docker/mxe-build-container/Dockerfile +++ b/scripts/docker/mxe-build-container/Dockerfile @@ -2,8 +2,8 @@ From ubuntu:18.04 RUN mkdir -p /win ADD settings.mk /win -RUN apt-get update && apt-get upgrade -y && \ - apt-get install -y \ +RUN apt-get update && apt-get upgrade -y +RUN apt-get install -y \ autoconf \ automake \ autopoint \ @@ -37,39 +37,17 @@ RUN apt-get update && apt-get upgrade -y && \ wget \ xz-utils \ lzip \ - scons ; \ - cd /win ; git clone git://github.com/mxe/mxe ; \ + scons +RUN cd /win ; git clone git://github.com/mxe/mxe ; \ cd mxe ; \ - git checkout 9f6b9c6f58510bedfa0bf9f87de9a214abe6b653 ; \ - mv ../settings.mk . ; \ - make -j 6 2>&1 | tee build.log ; \ - mkdir -p neolit ; cd neolit ; git clone -b wip/win http://code.qt.io/cgit/qt/qtconnectivity.git ; \ - cd qtconnectivity ; \ + git checkout 9f6b9c6f58510bedfa0bf9f87de9a214abe6b653 ; +RUN mv /win/settings.mk /win/mxe +RUN cd /win/mxe ; \ + make -j 6 2>&1 | tee build.log ; +RUN cd /win/mxe ; \ + mkdir -p neolit ; cd neolit ; git clone -b wip/win git://github.com/qt/qtconnectivity +RUN cd /win/mxe/neolit/qtconnectivity ; \ PATH=/win/mxe/usr/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin /win/mxe/usr/i686-w64-mingw32.shared/qt5/bin/qmake qtconnectivity.pro ; \ PATH=/win/mxe/usr/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin make -j 6 ; \ - PATH=/win/mxe/usr/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin make install ; \ - rm -rf /win/mxe/pkg ; \ - apt-get purge -y --auto-remove \ - autopoint \ - bison \ - flex \ - g++ \ - g++-multilib \ - gettext \ - gperf \ - intltool \ - libc6-dev-i386 \ - libgdk-pixbuf2.0-dev \ - libltdl-dev \ - libssl-dev \ - libtool-bin \ - libxml-parser-perl \ - openssl \ - p7zip-full \ - perl \ - python \ - ruby \ - unzip \ - xz-utils \ - lzip \ - scons + PATH=/win/mxe/usr/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin make install ; +RUN rm -rf /win/mxe/pkg |