You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.9 KiB
38 lines
1.9 KiB
2 days ago
|
FROM ubuntu:22.04
|
||
|
|
||
|
ENV QT_VERSION=5.15.2
|
||
|
ENV QT_ARCHITECTURE=gcc_64
|
||
|
|
||
|
# this image can also be used for appimage builds
|
||
|
# Configure the timezone, otherwise 'install-qt-action' gets stuck at 'configuring tzdata'.
|
||
|
RUN ln -sf /usr/share/zoneinfo/UTC /etc/localtime \
|
||
|
&& echo UTC > /etc/timezone
|
||
|
|
||
|
# install packages
|
||
|
# - appstream: Used to validate the AppStream metadata file.
|
||
|
# - cmake: Used to help build the application.
|
||
|
# - curl: Used to download the linuxdeploy AppImage tool.
|
||
|
# - desktop-file-utils: Used to validate the desktop file.
|
||
|
# - git: To clone this repository.
|
||
|
# - libfontconfig1: Used as dependency of the resulting AppImage.
|
||
|
# - libxcb-cursor0: Used as dependency of the resulting AppImage.
|
||
|
# - libxkbcommon-x11-0: Used as dependency of the resulting AppImage.
|
||
|
# - python3/python3-pip: Used by aqtinstall.
|
||
|
# - sudo: Used by most GitHub actions to install things.
|
||
|
# - libpq5: Useless, but needed to keep linuxdeploy happy
|
||
|
# - libodbc1: Useless, but needed to keep linuxdeploy happy
|
||
|
# - file: Necessary for building the AppImage
|
||
|
RUN apt update && \
|
||
|
apt install -y appstream cmake curl desktop-file-utils git libfontconfig1 libxcb-cursor0 libxkbcommon-x11-0 python3 python3-pip sudo \
|
||
|
libpq5 libodbc1 file \
|
||
|
# qt dependencies
|
||
|
build-essential libgl1-mesa-dev libgstreamer-gl1.0-0 libpulse-dev libxcb-glx0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 \
|
||
|
libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb1 libxkbcommon-dev libxkbcommon-x11-0 libxcb-xkb-dev \
|
||
|
libqt5network5 libqt5sql5 libqt5widgets5 qml-module-qtquick2 qml-module-qtquick-controls2 qml-module-qtquick-window2
|
||
|
|
||
|
RUN python3 -m pip install --upgrade pip setuptools aqtinstall
|
||
|
|
||
|
# use aqtinstall to install qt
|
||
|
RUN python3 -m aqt install-qt --outputdir /Qt linux desktop $QT_VERSION $QT_ARCHITECTURE
|
||
|
ENV PATH="/Qt/$QT_VERSION/$QT_ARCHITECTURE/bin:$PATH"
|