-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
91 lines (73 loc) · 2.08 KB
/
Dockerfile
File metadata and controls
91 lines (73 loc) · 2.08 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
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
FROM ubuntu:23.10
LABEL maintainer="supra"
LABEL qa-date="20240715"
RUN apt update && apt install -y --no-install-recommends \
apt-utils \
&& DEBIAN_FRONTEND=noninteractive apt --reinstall install -y --no-install-recommends \
apt-utils \
&& DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends \
binutils \
ca-certificates \
software-properties-common \
file \
curl \
gnupg2 \
netcat-openbsd \
net-tools \
&& rm -rf /var/lib/apt/lists/*
# apt conf generation
COPY apt /etc/apt
RUN apt update && DEBIAN_FRONTEND=noninteractive apt full-upgrade -y \
&& rm -rf /var/lib/apt/lists/*
# add user supra
RUN adduser --disabled-password --gecos "" --uid 1711 supra
# base requiremnts
RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends \
openbox \
picom \
feh \
xserver-xorg-video-all \
x11-utils \
x11-xserver-utils \
x11-xkb-utils \
xprintidle \
xdotool \
xcvt \
wmctrl \
tigervnc-standalone-server \
libgtk-3-bin \
locales-all \
bsdmainutils \
libglu1-mesa \
ffmpeg \
yaru-theme-gtk \
mesa-utils \
xdg-user-dirs \
xdg-user-dirs-gtk \
google-chrome-stable \
&& rm -rf /var/lib/apt/lists/*
# language support, zh-cn
#RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends \
# fonts-lyx \
# latex-cjk-chinese \
# language-pack-zh* \
# fonts-noto* \
# fonts-symbola \
# && rm -rf /var/lib/apt/lists/*
# audio
RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends \
pulseaudio \
&& rm -rf /var/lib/apt/lists/*
# confs
COPY pulse/default.pa /etc/pulse/default.pa
COPY supra supra
ENV PATH=/supra/bin:$PATH
ENV XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
ENV XDG_CURRENT_DESKTOP=ubuntu:GNOME
ENV XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/
ENV XDG_MENU_PREFIX=gnome-
ENV XDG_SESSION_CLASS=user
ENV XDG_SESSION_DESKTOP=ubuntu
ENV XDG_SESSION_TYPE=x11
# entry for docker built-in tini
CMD ["entry.sh"]