-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
64 lines (53 loc) · 1.62 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
FROM ubuntu:trusty
MAINTAINER GaRaOne
ARG QT=5.8.0
ARG QTM=5.8
ENV DEBIAN_FRONTEND noninteractive
ENV QT_PATH /opt/qt
ENV QT_BASE_DIR=$QT_PATH
ENV QT_ARCH ${QT_PATH}/${QTM}/gcc_64
ENV LD_LIBRARY_PATH=$QT_PATH/lib/x86_64-linux-gnu:$QT_PATH/lib:$LD_LIBRARY_PATH
ENV PKG_CONFIG_PATH=$QT_BAQT_PATHSE_DIR/lib/pkgconfig:$PKG_CONFIG_PATH
ENV PATH=${PATH}:${QT_ARCH}/bin
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN sudo dpkg --add-architecture i386 && \
apt-get update -q && \
apt-get install -q -y --no-install-recommends \
ant \
build-essential \
ca-certificates \
curl \
default-jdk \
git \
libavahi-client-dev \
libavahi-common-dev \
libc6:i386 \
libfontconfig1 \
libglib2.0-dev \
libglu1-mesa-dev \
libice6 \
libpulse-dev \
libncurses5:i386 \
libsm6 \
libstdc++6:i386 \
libX11-xcb1 \
libxext6 \
libxrender1 \
libz1:i386 \
mesa-common-dev \
openssh-client \
p7zip-full \
xvfb \
&& apt-get clean
# download & install qt
ADD qt-installer-noninteractive.qs /tmp/qt/script.qs
ADD http://download.qt.io/official_releases/qt/${QTM}/${QT}/qt-opensource-linux-x64-${QT}.run /tmp/qt/installer.run
RUN chmod +x /tmp/qt/installer.run \
&& xvfb-run /tmp/qt/installer.run --script /tmp/qt/script.qs \
| egrep -v '\[[0-9]+\] Warning: (Unsupported screen format)|((QPainter|QWidget))' \
&& rm -rf /tmp/qt
RUN locale-gen en_US.UTF-8 \
&& dpkg-reconfigure locales
# CLEAN CACHE
RUN rm -rf /var/lib/apt/lists/*
CMD ["/bin/bash"]