-
Notifications
You must be signed in to change notification settings - Fork 1
/
debian.dockerfile
32 lines (26 loc) · 1.26 KB
/
debian.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
ARG base_image=ubuntu-24.04
FROM docker.io/library/debian:12@sha256:17122fe3d66916e55c0cbd5bbf54bb3f87b3582f4d86a755a0fd3498d360f91b AS debian-12
FROM docker.io/library/debian:trixie@sha256:e400e96695f74dbad8fd4f30e2e5b7a16e3489638cb640180eac76d14251be67 AS debian-13
FROM docker.io/library/ubuntu:22.04@sha256:0e5e4a57c2499249aafc3b40fcd541e9a456aab7296681a3994d631587203f97 AS ubuntu-22.04
FROM docker.io/library/ubuntu:24.04@sha256:80dd3c3b9c6cecb9f1667e9290b3bc61b78c2678c02cbdae5f0fea92cc6734ab AS ubuntu-24.04
FROM docker.io/library/ubuntu:24.10@sha256:102bc1874fdb136fc2d218473f03cf84135cb7496fefdb9c026c0f553cfe1b6d AS ubuntu-24.10
FROM ${base_image}
ARG base_image
RUN apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
gnome-session \
gjs \
dbus-user-session \
gdm3 \
gir1.2-vte-2.91 \
$(if [ $base_image != ubuntu-22.04 ]; then echo gir1.2-vte-3.91; fi) \
xvfb \
packagekit \
gir1.2-packagekitglib-1.0 \
wl-clipboard \
gir1.2-handy-1
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" ]