-
-
Save RushOnline/a3e4be1161a69487df16a177c7c57997 to your computer and use it in GitHub Desktop.
Docker build for Qt 5.6.2 and Python 3.5.3 on CentOS 6.8
This file contains hidden or 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 centos:6.8 | |
RUN yum -y install centos-release-scl && \ | |
yum -y update && \ | |
yum -y install devtoolset-3-gcc devtoolset-3-gcc-c++ devtoolset-3-binutils \ | |
curl tar perl make openssl-devel \ | |
libxcb libxcb-devel xcb-util xcb-util-devel \ | |
libXrender libXrender-devel xcb-util-wm xcb-util-wm-devel \ | |
xcb-util-image xcb-util-image-devel \ | |
xcb-util-keysyms xcb-util-keysyms-devel \ | |
xcb-util-renderutil xcb-util-renderutil-devel \ | |
libXi libXi-devel mesa-libGL mesa-libGL-devel mesa-libEGL mesa-libEGL-devel \ | |
fontconfig fontconfig-devel libicu libicu-devel; | |
RUN ln -sf /opt/rh/devtoolset-3/root/usr/bin/gcc /usr/bin/gcc && \ | |
ln -sf /opt/rh/devtoolset-3/root/usr/bin/cpp /usr/bin/cpp && \ | |
ln -sf /opt/rh/devtoolset-3/root/usr/bin/g++ /usr/bin/g++ && \ | |
ln -sf /opt/rh/devtoolset-3/root/usr/bin/c++ /usr/bin/c++; | |
ADD Python-3.5.3.tgz / | |
RUN cd Python-3.5.3; \ | |
./configure --enable-shared; \ | |
make; \ | |
make install; \ | |
cd ..; \ | |
rm -rf Python-3.5.3; | |
ENV LD_LIBRARY_PATH /usr/local/lib | |
ADD qt-everywhere-opensource-src-5.6.2.tar.gz / | |
RUN cd qt-everywhere-opensource-src-5.6.2; \ | |
./configure -opensource -confirm-license -nomake tests -nomake examples -system-xcb -no-qml-debug -prefix /opt/qt56; \ | |
make; \ | |
make install; \ | |
cd ..; \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment