-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathDockerfile_6.5.2
59 lines (48 loc) · 1.6 KB
/
Dockerfile_6.5.2
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
FROM carlonluca/qt-dev-base:jammy
ENTRYPOINT ["/bin/bash", "-l", "-c"]
WORKDIR /root
ARG TARGETARCH
ARG QTVER
COPY qt_export/Qt-amd64-$QTVER.tar.xz /root/
COPY qt_export/Qt-arm64-$QTVER.tar.xz /root/
COPY qt_export/Qt-android-$QTVER.tar.xz /root/
COPY builder/toolchain.cmake /root/
# Android
RUN \
if [ "$TARGETARCH" != "arm64" ]; then \
sdkmanager "platforms;android-33" "platform-tools" "build-tools;33.0.0" \
&& export ANDROID_SDK_ROOT=/opt/android-sdk \
&& sdkmanager "ndk;25.1.8937393" \
&& export ANDROID_NDK_ROOT=/opt/android-sdk/ndk/25.1.8937393 \
&& yes | sdkmanager --licenses; \
fi
ENV ANDROID_NDK_ROOT=/opt/android-sdk/ndk/25.1.8937393
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
RUN \
cd /opt && \
tar xvfp /root/Qt-arm64-$QTVER.tar.xz && \
rm /root/Qt-arm64-$QTVER.tar.xz
RUN \
cd /opt && \
if [ "$TARGETARCH" != "arm64" ]; then \
tar xvfp /root/Qt-amd64-$QTVER.tar.xz; \
rm /root/Qt-amd64-$QTVER.tar.xz; \
tar xvfp /root/Qt-android-$QTVER.tar.xz; \
rm /root/Qt-android-$QTVER.tar.xz; \
fi
RUN \
echo "/opt/Qt-$TARGETARCH-$QTVER/lib" >> /etc/ld.so.conf.d/x86_64-linux-gnu.conf \
&& ldconfig
RUN \
rm -f /root/Qt-amd64-$QTVER.tar.xz \
&& rm -f /root/Qt-arm64-$QTVER.tar.xz \
&& rm -f /root/Qt-android-$QTVER.tar.xz
RUN \
apt-get -y autoremove \
&& apt-get -y autoclean \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/*
ENV PATH="${PATH}:/opt/Qt-$TARGETARCH-$QTVER/bin:/opt/Qt-$TARGETARCH-$QTVER/libexec"
ENV QT_HOST_PATH="/opt/Qt-$TARGETARCH-$QTVER/"
ENV QT_PLUGIN_PATH="/opt/Qt-$TARGETARCH-$QTVER/plugins"