BG5 commited on
Commit
5bde487
·
verified ·
1 Parent(s): cbe6f68

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -0
Dockerfile CHANGED
@@ -18,6 +18,7 @@
18
  # Use the official Ubuntu image.
19
  # Use the official Ubuntu image.
20
  # Use the official Ubuntu image.
 
21
  FROM ubuntu:20.04
22
 
23
  # Set the timezone
@@ -28,6 +29,13 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
28
  RUN echo "keyboard-configuration keyboard-configuration/layout select us" | debconf-set-selections
29
  RUN echo "keyboard-configuration keyboard-configuration/variant select English (US)" | debconf-set-selections
30
 
 
 
 
 
 
 
 
31
  # Install dependencies in non-interactive mode
32
  RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \
33
  xfce4 \
@@ -37,6 +45,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \
37
  curl \
38
  tzdata \
39
  keyboard-configuration \
 
40
  && rm -rf /var/lib/apt/lists/*
41
 
42
  # Set up VNC
 
18
  # Use the official Ubuntu image.
19
  # Use the official Ubuntu image.
20
  # Use the official Ubuntu image.
21
+ # Use the official Ubuntu image.
22
  FROM ubuntu:20.04
23
 
24
  # Set the timezone
 
29
  RUN echo "keyboard-configuration keyboard-configuration/layout select us" | debconf-set-selections
30
  RUN echo "keyboard-configuration keyboard-configuration/variant select English (US)" | debconf-set-selections
31
 
32
+ # Pre-seed the display manager
33
+ RUN echo "gdm3 shared/default-x-display-manager select gdm3" | debconf-set-selections
34
+
35
+ # Pre-seed the desktop environment
36
+ RUN echo "xfce4 xfce4/desktop_icons_show_home boolean false" | debconf-set-selections
37
+ RUN echo "xfce4 xfce4/desktop_icons_show_trash boolean false" | debconf-set-selections
38
+
39
  # Install dependencies in non-interactive mode
40
  RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \
41
  xfce4 \
 
45
  curl \
46
  tzdata \
47
  keyboard-configuration \
48
+ gdm3 \
49
  && rm -rf /var/lib/apt/lists/*
50
 
51
  # Set up VNC