-
Notifications
You must be signed in to change notification settings - Fork 1
/
suse.dockerfile
34 lines (28 loc) · 1.13 KB
/
suse.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
ARG base_image=opensuse-tumbleweed
FROM docker.io/opensuse/tumbleweed:latest@sha256:54132f517d4dd18233d322439149b1cdeb9dcf8782088cef0923cfa56a22076f AS opensuse-tumbleweed
FROM docker.io/opensuse/leap:15.6@sha256:8cf656d677c02d31db333fcc2f97c7fcaa1ced47437f3b6e2582bd4ddce058ed AS opensuse-leap-15.6
FROM ${base_image}
ARG base_image
RUN mkdir -p /usr/share/xsessions && \
touch /usr/share/xsessions/gnome.desktop && \
zypper --non-interactive install --no-recommends \
systemd-sysvinit \
xorg-x11-server-Xvfb \
$(if [ $base_image = opensuse-tumbleweed ]; then echo gnome-session-xsession; fi) \
gjs \
gdm \
gnome-session-wayland \
gnome-extensions \
gtk3-metatheme-adwaita \
typelib-1_0-Vte-2.91 \
typelib-1_0-Vte-3_91 \
PackageKit \
typelib-1_0-PackageKitGlib-1_0 \
typelib-1_0-Handy-1_0 \
wl-clipboard \
&& zypper clean --all
COPY data /
RUN systemctl set-default multi-user.target && \
systemctl mask systemd-oomd low-memory-monitor rtkit-daemon udisks2 && \
truncate --size 0 /etc/machine-id
CMD [ "/sbin/init" ]