Theright07 commited on
Commit
0fb05bf
·
verified ·
1 Parent(s): 08471fb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -15
Dockerfile CHANGED
@@ -1,23 +1,23 @@
1
- FROM debian:stretch-slim
2
 
3
- # Avoid prompts
4
  ENV DEBIAN_FRONTEND=noninteractive
5
 
6
- # Install desktop, POSIX tools, VNC and noVNC
7
  RUN apt-get update && apt-get install -y --no-install-recommends \
8
- bash \
9
- curl \
10
- git \
11
- net-tools \
12
- novnc \
13
- socat \
14
- x11vnc \
15
- xfce4 \
16
- xfce4-terminal \
17
- xvfb \
18
  && rm -rf /var/lib/apt/lists/*
19
 
20
- # Setup Hugging Face User Permissions
21
  RUN useradd -m -u 1000 user
22
  USER user
23
  ENV HOME=/home/user \
@@ -25,7 +25,7 @@ ENV HOME=/home/user \
25
 
26
  WORKDIR $HOME/app
27
 
28
- # Configuration scripts setup
29
  RUN echo '#!/bin/bash\n\
30
  Xvfb :1 -screen 0 1024x768x16 &\n\
31
  sleep 1\n\
 
1
+ FROM ubuntu:22.04
2
 
3
+ # Avoid prompts during installation
4
  ENV DEBIAN_FRONTEND=noninteractive
5
 
6
+ # Update and install Ubuntu Desktop, VNC, and noVNC
7
  RUN apt-get update && apt-get install -y --no-install-recommends \
8
+ bash \
9
+ curl \
10
+ git \
11
+ net-tools \
12
+ novnc \
13
+ socat \
14
+ x11vnc \
15
+ xfce4 \
16
+ xfce4-terminal \
17
+ xvfb \
18
  && rm -rf /var/lib/apt/lists/*
19
 
20
+ # Setup Hugging Face Default User (UID 1000)
21
  RUN useradd -m -u 1000 user
22
  USER user
23
  ENV HOME=/home/user \
 
25
 
26
  WORKDIR $HOME/app
27
 
28
+ # Configuration script for desktop server
29
  RUN echo '#!/bin/bash\n\
30
  Xvfb :1 -screen 0 1024x768x16 &\n\
31
  sleep 1\n\