Qt 5152 Offline Installer
If the main server is slow, use official mirrors (China: mirrors.tuna.tsinghua.edu.cn/qt/, Germany: ftp.fau.de/qt/). Always ensure the URL path ends with /5.15.2/ and the filename contains opensource.
Recommendation: Use Qt 5.15.2 for existing long-term projects (medical devices, automotive infotainment, industrial HMI). For greenfield projects, use Qt 6.x, but keep a copy of the Qt 5.15.2 offline installer on a backup drive for legacy maintenance. qt 5152 offline installer
FROM ubuntu:20.04
RUN apt update && apt install -y build-essential libgl1-mesa-dev
ADD qt-opensource-linux-x64-5.15.2.run /tmp/
RUN chmod +x /tmp/qt-opensource-linux-x64-5.15.2.run && \
/tmp/qt-opensource-linux-x64-5.15.2.run --platform minimal --script /tmp/auto-install.qs
ENV PATH=/root/Qt/5.15.2/gcc_64/bin:$PATH