-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathDockerfile
More file actions
51 lines (43 loc) · 1.24 KB
/
Dockerfile
File metadata and controls
51 lines (43 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive
# Dependencies from hack.md (Debian/Ubuntu section)
RUN apt-get update && apt-get install -y \
python3-pip \
pipx \
build-essential \
xorg-dev \
libcups2-dev \
libxcb-cursor-dev \
libtiff5-dev \
clang \
clang-tools \
ninja-build \
cmake \
ccache \
mold \
wget \
curl \
git \
file \
libfuse2 \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# Install aqtinstall as per hack.md
# We use --break-system-packages because Ubuntu 24.04 blocks global pip install
RUN pip3 install --break-system-packages aqtinstall
# Install Qt as per hack.md
# Note: ~/qt for root is /root/qt
RUN aqt install-qt linux desktop 6.10.1 -m all -O /root/qt
RUN aqt install-tool linux desktop tools_qtcreator_gui -O /root/qt
# Environment variables as per hack.md
ENV PATH="/root/qt/6.10.1/gcc_64/bin:${PATH}"
ENV NINJA_STATUS="[%f/%t %p %P][%w + %W] "
# Default ccache paths (build-appimage.sh will try to detect them as well)
ENV CC=/usr/lib/ccache/gcc
ENV CXX=/usr/lib/ccache/g++
# Required for linuxdeploy to run inside Docker
ENV APPIMAGE_EXTRACT_AND_RUN=1
ENV HOME=/root
WORKDIR /app
# Default command runs the build script
CMD ["./build-appimage.sh"]