Created
May 14, 2018 14:30
-
-
Save benlau/e60d96a2443d751cbcf904970861275a to your computer and use it in GitHub Desktop.
Docker with Qt 5.9.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:17.10 | |
MAINTAINER Ben Lau version: 0.1 | |
SHELL ["/bin/bash", "-c"] | |
VOLUME /data | |
ENV DOWNLOAD https://download.qt.io/archive/qt/5.9/5.9.0/qt-opensource-linux-x64-5.9.0.run | |
ENV QT_CI_PACKAGES "qt.59.gcc_64" | |
RUN apt-get update && \ | |
apt-get install -y build-essential libx11-6 libfontconfig1 libx11-xcb1 libdbus-1-3 vim mesa-common-dev libgl1-mesa-dev libglib2.0-dev wget && \ | |
rm -rf /var/cache/apk/* | |
RUN cd /opt && wget https://raw.githubusercontent.com/benlau/qtci/master/bin/extract-qt-installer && chmod u+x /opt/extract-qt-installer | |
RUN cd /opt && wget ${DOWNLOAD} && /opt/extract-qt-installer /opt/$(basename ${DOWNLOAD}) /opt/Qt && rm -rf /opt/Qt/Tools; rm $(basename ${DOWNLOAD}) | |
RUN echo "export PATH=/opt/Qt/5.9/gcc_64/bin:$PATH" >> /root/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment