File size: 733 Bytes
d2c5967
40862e1
 
d2c5967
40862e1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d2c5967
 
40862e1
 
 
 
 
 
d2c5967
40862e1
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
# 1. Use the stable version of the Cloud OS
FROM accetto/ubuntu-vnc-xfce-g3:latest

# 2. Switch to Root to install your "Admin" tools
USER 0

# Install basic tools (Text editor, curl, git, python, etc.)
RUN apt-get update && apt-get install -y \
    nano \
    git \
    wget \
    python3 \
    python3-pip \
    && apt-get clean && rm -rf /var/lib/apt/lists/*

# 3. Configure Hugging Face Networking
ENV NO_VNC_PORT=7860
EXPOSE 7860

# 4. FIX PERMISSIONS (Crucial for Hugging Face)
# This ensures the user can write to their home folder
RUN chmod -R 777 /home/headless

# 5. Switch back to the default user
USER 1001

# 6. Start the OS
# (We removed the ENTRYPOINT line. The image will now use its built-in default)
CMD ["--wait"]