Pc / Dockerfile
Mafia2008's picture
Update Dockerfile
d2c5967 verified
raw
history blame contribute delete
733 Bytes
# 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"]