FROM debian:11 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 && cd /root/qt6 && git checkout 6.4.1 WORKDIR /root/qt6 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 WORKDIR /root/qt6-build RUN cmake --build . && cmake --install . ENV QTVERSION=6.4.1 ENV PATH="${PATH}:/usr/local/Qt-${QTVERSION}/bin" RUN rm -rf /root/*