2017-05-24 10:39:45 -05:00
|
|
|
FROM ubuntu:latest
|
|
|
|
|
MAINTAINER Faraz Fallahi <fffaraz@gmail.com>
|
|
|
|
|
RUN \
|
|
|
|
|
apt -y update && \
|
|
|
|
|
apt -y upgrade && \
|
2017-05-24 11:55:46 -05:00
|
|
|
apt -y install build-essential git iputils-ping python wget && \
|
2017-05-24 10:39:45 -05:00
|
|
|
apt -y autoremove && \
|
|
|
|
|
apt -y autoclean && \
|
2017-05-24 11:55:46 -05:00
|
|
|
cd /opt && \
|
|
|
|
|
wget http://download.qt.io/official_releases/qt/5.8/5.8.0/single/qt-everywhere-opensource-src-5.8.0.tar.gz && \
|
|
|
|
|
tar xf qt-everywhere-opensource-src-5.8.0.tar.gz && \
|
|
|
|
|
rm qt-everywhere-opensource-src-5.8.0.tar.gz && \
|
|
|
|
|
cd qt-everywhere-opensource-src-5.8.0 && \
|
|
|
|
|
./configure -opensource -confirm-license -release -strip -static -c++std c++14 -ltcg -nomake examples -no-compile-examples -no-webkit -no-opengl && \
|
|
|
|
|
make -j $(($(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1)+2)) && \
|
|
|
|
|
make install && \
|
|
|
|
|
cd /opt && \
|
|
|
|
|
rm -rf qt-everywhere-opensource-src-5.8.0 && \
|
2017-05-24 10:39:45 -05:00
|
|
|
exit 0
|
2017-05-24 11:55:46 -05:00
|
|
|
ENV PATH="${PATH}:/usr/local/Qt-5.8.0/bin"
|