-
Notifications
You must be signed in to change notification settings - Fork 11
/
Dockerfile_5.12.11
54 lines (47 loc) · 2.19 KB
/
Dockerfile_5.12.11
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
FROM ubuntu:20.04
ENTRYPOINT ["/bin/bash", "-l", "-c"]
WORKDIR /root
ARG TARGETARCH
COPY qt_export/Qt-$TARGETARCH-5.12.11.tar.xz /root/
RUN \
export DEBIAN_FRONTEND=noninteractive && \
apt -y update && \
apt -y upgrade && \
apt -y install \
build-essential cmake freeglut3-dev gdb git iputils-ping libgl1-mesa-dev \
libglu1-mesa-dev libjpeg-dev libmysqlclient-dev libnss3-dev libopus-dev \
libpng-dev libsqlite3-dev libssl-dev libx11-xcb-dev libxcb-xinerama0-dev \
libxcb-xkb-dev libxcb1-dev libxcursor-dev libxi-dev libxml2-dev libxrender-dev \
libxslt-dev lzip mesa-common-dev nano perl python valgrind wget zlib1g-dev \
'^libxcb.*-dev' libxkbcommon-dev libxkbcommon-x11-dev wget libwayland-dev && \
apt -y install flex bison gperf libicu-dev libxslt-dev ruby && \
apt -y install libxcursor-dev libxcomposite-dev libxdamage-dev libxrandr-dev \
libxtst-dev libxss-dev libdbus-1-dev libevent-dev libfontconfig1-dev \
libcap-dev libpulse-dev libudev-dev libpci-dev libnss3-dev libasound2-dev \
libegl1-mesa-dev gperf bison nodejs && \
apt -y install libasound2-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \
libgstreamer-plugins-good1.0-dev libgstreamer-plugins-bad1.0-dev && \
apt -y autoremove && \
apt -y autoclean && \
apt -y clean && \
rm -rf /var/lib/apt/lists/*
RUN \
cd /opt && \
tar xvfp /root/Qt-$TARGETARCH-5.12.11.tar.xz && \
rm /root/Qt-$TARGETARCH-5.12.11.tar.xz
RUN \
set -eux && \
cd /opt && \
wget --no-check-certificate http://download.qt.io/official_releases/qt/5.12/5.12.11/single/qt-everywhere-src-5.12.11.tar.xz && \
tar xf qt-everywhere-src-5.12.11.tar.xz && \
rm qt-everywhere-src-5.12.11.tar.xz
RUN \
cd /opt/qt-everywhere-src-5.12.11/qtbase && \
./configure -opensource -confirm-license -release -nomake tests -nomake examples \
-qt-zlib -qt-libjpeg -qt-libpng -xcb -qt-freetype -qt-pcre -qt-harfbuzz -skip qtwebengine -prefix /opt/Qt-$TARGETARCH-5.12.11 && \
make -j $(($(nproc)+4)) && \
make install && \
cd /opt && \
rm -rf qt-everywhere-src-5.12.11 && \
exit 0
ENV PATH="${PATH}:/opt/Qt-$TARGETARCH-5.12.11/bin"