Mafia2008 commited on
Commit
d2c5967
·
verified ·
1 Parent(s): 40862e1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -8
Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
- # 1. Use the "Headless" Ubuntu + XFCE Desktop image
2
  FROM accetto/ubuntu-vnc-xfce-g3:latest
3
 
4
- # 2. Switch to Root to install extra tools
5
  USER 0
6
 
7
  # Install basic tools (Text editor, curl, git, python, etc.)
@@ -14,19 +14,16 @@ RUN apt-get update && apt-get install -y \
14
  && apt-get clean && rm -rf /var/lib/apt/lists/*
15
 
16
  # 3. Configure Hugging Face Networking
17
- # We do NOT set ENV VNC_PW here anymore.
18
- # The system will automatically pick up the 'VNC_PW' secret you set in Step 1.
19
-
20
  ENV NO_VNC_PORT=7860
21
  EXPOSE 7860
22
 
23
- # 4. Set permissions for the home directory
 
24
  RUN chmod -R 777 /home/headless
25
 
26
  # 5. Switch back to the default user
27
  USER 1001
28
 
29
  # 6. Start the OS
30
- # This startup script automatically looks for the $VNC_PW environment variable
31
- ENTRYPOINT ["/dockerstartup/vnc_startup.sh"]
32
  CMD ["--wait"]
 
1
+ # 1. Use the stable version of the Cloud OS
2
  FROM accetto/ubuntu-vnc-xfce-g3:latest
3
 
4
+ # 2. Switch to Root to install your "Admin" tools
5
  USER 0
6
 
7
  # Install basic tools (Text editor, curl, git, python, etc.)
 
14
  && apt-get clean && rm -rf /var/lib/apt/lists/*
15
 
16
  # 3. Configure Hugging Face Networking
 
 
 
17
  ENV NO_VNC_PORT=7860
18
  EXPOSE 7860
19
 
20
+ # 4. FIX PERMISSIONS (Crucial for Hugging Face)
21
+ # This ensures the user can write to their home folder
22
  RUN chmod -R 777 /home/headless
23
 
24
  # 5. Switch back to the default user
25
  USER 1001
26
 
27
  # 6. Start the OS
28
+ # (We removed the ENTRYPOINT line. The image will now use its built-in default)
 
29
  CMD ["--wait"]