-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (35 loc) · 1.16 KB
/
Copy pathDockerfile
File metadata and controls
41 lines (35 loc) · 1.16 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
FROM archlinux:latest
LABEL org.opencontainers.image.description="\
Container image for kirigami app development. Based on Arch Linux. \
An example devcontainer.json is provided in the project's repository."
RUN pacman -Syu --noconfirm \
cmake \
git \
extra-cmake-modules \
sudo \
make \
clang \
qt6-base \
qt6-languageserver \
qt6-declarative \
kirigami \
kcoreaddons \
kconfig \
ki18n \
kiconthemes \
kirigami-addons \
qqc2-desktop-style \
qqc2-breeze-style \
just \
noto-fonts
# Create user with sudo access
RUN groupadd --gid 1000 user \
&& useradd --uid 1000 --gid 1000 -m -s /bin/bash user \
&& echo 'user ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers.d/user \
&& chmod 0440 /etc/sudoers.d/user
# Give user access to the input group
RUN groupadd -f input \
&& usermod -a -G input user
# Add welcome message to explain the slightly-off breeze theme
RUN echo 'echo "Welcome! The QML version of breeze, qqc2-breeze-style, is applied through QT_QUICK_CONTROLS_STYLE, and it can differ from the normal breeze theme."' >> /home/user/.bashrc
ENV QT_QUICK_CONTROLS_STYLE=org.kde.breeze