georgesnoe commited on
Commit
e902618
·
verified ·
1 Parent(s): dae5804

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -9
Dockerfile CHANGED
@@ -7,7 +7,7 @@
7
  FROM ubuntu:24.04
8
 
9
  ENV DEBIAN_FRONTEND=noninteractive
10
- ENV HOME=/home/user
11
  ENV DISPLAY=:1
12
 
13
  # ── System dependencies ──────────────────────────────────────
@@ -42,16 +42,16 @@ RUN apt-get update && apt-get install -y \
42
  && rm -rf /var/lib/apt/lists/*
43
 
44
  # ── Create non-root user ──────────────────────────────────────
45
- RUN useradd -m -s /bin/bash user \
46
- && echo "user:user" | chpasswd \
47
- && usermod -aG sudo user \
48
- && echo "user ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
49
 
50
  # ── VNC dirs & xstartup ───────────────────────────────────────
51
- RUN mkdir -p /home/user/.vnc
52
- COPY xstartup /home/user/.vnc/xstartup
53
- RUN chmod +x /home/user/.vnc/xstartup \
54
- && chown -R user:user /home/user/.vnc
55
 
56
  # ── noVNC symlink ─────────────────────────────────────────────
57
  RUN ln -sf /usr/share/novnc/vnc.html /usr/share/novnc/index.html
 
7
  FROM ubuntu:24.04
8
 
9
  ENV DEBIAN_FRONTEND=noninteractive
10
+ ENV HOME=/home/georgesnoe
11
  ENV DISPLAY=:1
12
 
13
  # ── System dependencies ──────────────────────────────────────
 
42
  && rm -rf /var/lib/apt/lists/*
43
 
44
  # ── Create non-root user ──────────────────────────────────────
45
+ RUN useradd -m -s /bin/bash georgesnoe \
46
+ && echo "georgesnoe:georgesnoe" | chpasswd \
47
+ && usermod -aG sudo georgesnoe \
48
+ && echo "georgesnoe ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
49
 
50
  # ── VNC dirs & xstartup ───────────────────────────────────────
51
+ RUN mkdir -p /home/georgesnoe/.vnc
52
+ COPY xstartup /home/georgesnoe/.vnc/xstartup
53
+ RUN chmod +x /home/georgesnoe/.vnc/xstartup \
54
+ && chown -R georgesnoe:georgesnoe /home/georgesnoe/.vnc
55
 
56
  # ── noVNC symlink ─────────────────────────────────────────────
57
  RUN ln -sf /usr/share/novnc/vnc.html /usr/share/novnc/index.html