MultiStage Builds and push to Docker Hub

This commit is contained in:
Justin Hammond 2019-05-28 14:09:20 +08:00
parent c13cb4b3bc
commit 0707b1e2bc
3 changed files with 17 additions and 3 deletions

View file

@ -1,4 +1,4 @@
FROM fedora:25
FROM fedora:25 AS builder
MAINTAINER Justin Hammond <justin@dynam.ac>
@ -13,4 +13,17 @@ RUN dnf update -y && \
../qt-everywhere-src-5.12.3/configure --prefix=/opt/Qt/5.12.3/ --opensource -confirm-license -release -static -optimize-size -syslog -no-use-gold-linker -nomake examples -nomake tests -openssl-runtime -qt-xcb -qt-zlib -qt-libjpeg -qt-libpng -system-freetype -qt-pcre -qt-harfbuzz -fontconfig && \
cd /opt/qt-build && \
make -j28 && \
make install
make install
FROM fedora:25
MAINTAINER Justin Hammond <justin@dynam.ac>
RUN dnf update -y && \
dnf groupinstall 'Development Tools' -y && \
dnf install wget mc joe xz which gcc-c++ gperf bison flex openssl-devel mesa-libGL-devel libXrender-devel libxkbcommon-devel libXcomposite-devel libXcursor-devel libXi-devel libinput-devel freetype-devel fontconfig-devel -y
WORKDIR /opt
COPY --from=builder /opt/Qt /opt/Qt
RUN echo "PATH=$PATH:/opt/Qt/5.12.3/bin" > /etc/profile.d/qt.sh && echo "export PATH" >> /etc/profile.d/qt.sh

1
Fedora-QT/build.sh Executable file
View file

@ -0,0 +1 @@
docker build . -t fishwaldo/qt-staticbuilds:5.12.3

View file

@ -1 +1 @@
docker run -it -v /tmp/build/:/opt/build fishwaldo/buildqtapp /bin/bash
docker run -it -v /tmp/build/:/opt/build fishwaldo/qt-staticbuilds:5.12.3 /bin/bash