You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
706 B
Docker

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
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
WORKDIR /root/qt6-build
RUN cmake --build . --parallel 2
RUN cmake --install .
ENV QTVERSION=6.4.1
ENV PATH="${PATH}:/usr/local/Qt-${QTVERSION}/bin"
RUN rm -rf /root/*