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 17:58:04 -05:00
|
|
|
apt -y install build-essential git iputils-ping nano python wget && \
|
2017-06-01 15:09:08 -05:00
|
|
|
apt -y install mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev && \
|
2017-05-24 10:39:45 -05:00
|
|
|
apt -y autoremove && \
|
|
|
|
|
apt -y autoclean && \
|
2017-05-24 11:55:46 -05:00
|
|
|
cd /opt && \
|
2017-05-31 16:09:35 -05:00
|
|
|
wget -q http://download.qt.io/official_releases/qt/5.9/5.9.0/single/qt-everywhere-opensource-src-5.9.0.tar.xz && \
|
|
|
|
|
tar xf qt-everywhere-opensource-src-5.9.0.tar.xz && \
|
|
|
|
|
rm qt-everywhere-opensource-src-5.9.0.tar.xz && \
|
|
|
|
|
cd qt-everywhere-opensource-src-5.9.0 && \
|
2017-06-01 15:10:21 -05:00
|
|
|
./configure -opensource -confirm-license -release -static -nomake tests -nomake examples -no-compile-examples && \
|
2017-05-24 11:55:46 -05:00
|
|
|
make -j $(($(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1)+2)) && \
|
|
|
|
|
make install && \
|
|
|
|
|
cd /opt && \
|
2017-05-31 16:09:35 -05:00
|
|
|
rm -rf qt-everywhere-opensource-src-5.9.0 && \
|
2017-05-24 10:39:45 -05:00
|
|
|
exit 0
|
2017-05-31 16:09:35 -05:00
|
|
|
ENV PATH="${PATH}:/usr/local/Qt-5.9.0/bin"
|