From 9df8056795b7fe7fd52bf99a03252bde269f103b Mon Sep 17 00:00:00 2001 From: Alexander Diamadis Date: Wed, 16 Nov 2022 09:45:27 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9EDockerfile=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5e30768..4df0b62 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,10 @@ - FROM debian:11 -RUN apt update && apt -y upgrade && apt install -y build-essential libgl1-mesa-dev git cmake libmariadb-dev && \ - apt -y autoremove && \ - apt -y autoclean && \ - apt -y clean && \ - rm -rf /var/lib/apt/lists/* && \ - exit 0 -RUN git clone https://code.qt.io/qt/qt5.git /root/qt6 +RUN apt update && apt install -y build-essential libgl1-mesa-dev git cmake libmariadb-dev && git clone https://code.qt.io/qt/qt5.git /root/qt6 && git checkout 6.4.1 WORKDIR /root/qt6 -RUN git checkout 6.4.1 RUN perl init-repository --module-subset=qtbase,qtpositioning,qthttpserver -RUN mkdir /root/qt6-build && cd /root/qt6-build && /root/qt6/configure -no-opengl -no-gui -no-widgets -no-dbus -no-pcre +RUN mkdir /root/qt6-build && cd /root/qt6-build && /root/qt6/configure -no-opengl -no-gui WORKDIR /root/qt6-build -RUN cmake --build . --parallel 2 -RUN cmake --install . +RUN cmake --build . && cmake --install . ENV QTVERSION=6.4.1 ENV PATH="${PATH}:/usr/local/Qt-${QTVERSION}/bin" RUN rm -rf /root/* \ No newline at end of file