-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
96 lines (87 loc) · 3.04 KB
/
Dockerfile
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# x11docker/lxqt
#
# Run LXQT desktop in docker.
# Use x11docker to run image.
# Get x11docker from github:
# https://github.com/mviereck/x11docker
#
# Examples: x11docker --desktop x11docker/lxqt
# x11docker x11docker/lxqt pcmanfm-qt
#
# Options:
# Persistent home folder stored on host with --home
# Shared host file or folder with --share PATH
# Hardware acceleration with option --gpu
# Clipboard sharing with option --clipboard
# ALSA sound support with option --alsa
# Pulseaudio sound support with option --pulseaudio
# Language setting with --lang [=$LANG]
# Printing over CUPS with --printer
# Webcam support with --webcam
#
# See x11docker --help for further options.
FROM debian:bullseye
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
apt-get install -y dbus-x11 procps psmisc && \
apt-get install -y mesa-utils mesa-utils-extra libxv1 kmod xz-utils && \
apt-get install -y --no-install-recommends xdg-utils xdg-user-dirs \
menu-xdg mime-support desktop-file-utils
# Language/locale settings
# replace en_US by your desired locale setting,
# for example de_DE for german.
ENV LANG en_US.UTF-8
RUN echo $LANG UTF-8 > /etc/locale.gen && \
apt-get install -y locales && \
update-locale --reset LANG=$LANG
# LXQT desktop
RUN apt-get install -y --no-install-recommends \
lxqt-core qtwayland5 xfwm4 && \
apt-get install -y --no-install-recommends \
featherpad lxqt-about lxqt-config lxqt-qtplugin \
pavucontrol-qt qlipper qterminal
# config lxqt
RUN mkdir -p /etc/skel/.config/lxqt && \
echo '[General]\n\
__userfile__=true\n\
icon_theme=Adwaita\n\
single_click_activate=false\n\
theme=ambiance\n\
tool_button_style=ToolButtonTextBesideIcon\n\
\n\
[Qt]\n\
doubleClickInterval=400\n\
font="Sans,11,-1,5,50,0,0,0,0,0"\n\
style=Fusion\n\
wheelScrollLines=3\n\
' >/etc/skel/.config/lxqt/lxqt.conf && \
echo '[General]\n\
__userfile__=true\n\
[Environment]\n\
TERM=qterminal\n\
' >/etc/skel/.config/lxqt/session.conf
# config pcmanfm-qt
RUN mkdir -p /etc/skel/.config/pcmanfm-qt/lxqt && \
echo '[Desktop]\n\
ShowHidden=true\n\
Wallpaper=/usr/share/lxqt/themes/ambiance/Butterfly-Kenneth-Wimer.jpg\n\
WallpaperMode=stretch\n\
' >/etc/skel/.config/pcmanfm-qt/lxqt/settings.conf
# config panel / add some launchers
RUN mkdir -p /etc/xdg/lxqt && echo '[quicklaunch]\n\
alignment=Left\n\
apps\\1\desktop=/usr/share/applications/pcmanfm-qt.desktop\n\
apps\\2\desktop=/usr/share/applications/qterminal.desktop\n\
apps\\3\desktop=/usr/share/applications/juffed.desktop\n\
apps\size=3\n\
type=quicklaunch\n\
' >> /etc/xdg/lxqt/panel.conf
RUN echo '#! /bin/bash\n\
xdpyinfo | grep -q -i COMPOSITE || echo "x11docker/lxqt: X extension COMPOSITE not found.\n\
Graphical glitches might occur.\n\
If you run with x11docker option --nxagent, please add option --composite.\n\
" >&2\n\
startlxqt\n\
' > /usr/local/bin/start && \
chmod +x /usr/local/bin/start
CMD start