Update Dockerfile.static

This commit is contained in:
Faraz Fallahi
2023-04-09 01:13:12 -04:00
committed by GitHub
parent de3b8f3a76
commit 0cb1dce959

View File

@@ -3,7 +3,7 @@ FROM ubuntu:22.04
# RUN echo 'Acquire::http { Proxy "http://192.168.1.2:3142"; };' >> /etc/apt/apt.conf.d/00proxy # RUN echo 'Acquire::http { Proxy "http://192.168.1.2:3142"; };' >> /etc/apt/apt.conf.d/00proxy
RUN \ RUN \
set -x && \ set -eux && \
export DEBIAN_FRONTEND=noninteractive && \ export DEBIAN_FRONTEND=noninteractive && \
apt -y update && \ apt -y update && \
apt -y upgrade && \ apt -y upgrade && \
@@ -23,19 +23,16 @@ RUN \
RUN \ RUN \
set -eux && \ set -eux && \
cd /opt && \ cd /opt && \
wget -q http://download.qt.io/official_releases/qt/5.15/5.15.9/single/qt-everywhere-src-5.15.9.tar.xz && \ wget -q https://download.qt.io/official_releases/qt/5.15/5.15.9/single/qt-everywhere-opensource-src-5.15.9.tar.xz && \
tar xf qt-everywhere-src-5.15.9.tar.xz && \ tar xf qt-everywhere-opensource-src-5.15.9.tar.xz && \
rm qt-everywhere-src-5.15.9.tar.xz && \ rm qt-everywhere-opensource-src-5.15.9.tar.xz && \
exit 0 cd /opt/qt-everywhere-opensource-src-5.15.9 && \
RUN \
cd /opt/qt-everywhere-src-5.15.9 && \
./configure -opensource -confirm-license -release -static -nomake tests -nomake examples -skip qtwebengine \ ./configure -opensource -confirm-license -release -static -nomake tests -nomake examples -skip qtwebengine \
-qt-zlib -qt-libjpeg -qt-libpng -xcb -qt-freetype -qt-pcre -qt-harfbuzz && \ -qt-zlib -qt-libjpeg -qt-libpng -xcb -qt-freetype -qt-pcre -qt-harfbuzz && \
make -j $(($(nproc)+4)) && \ make -j $(nproc) && \
make install && \ make install && \
cd /opt && \ cd /opt && \
rm -rf qt-everywhere-src-5.15.9 && \ rm -rf qt-everywhere-opensource-src-5.15.9 && \
exit 0 exit 0
ENV PATH="${PATH}:/usr/local/Qt-5.15.9/bin" ENV PATH="${PATH}:/usr/local/Qt-5.15.9/bin"