FROM archlinux:latest # 1. Update system and install XFCE Desktop, VNC, and noVNC RUN pacman -Syu --noconfirm && \ pacman -S --noconfirm \ xfce4 \ xfce4-goodies \ xvfb \ x11vnc \ novnc \ firefox \ sudo \ bash # 2. Setup a non-root user (Hugging Face requirement) RUN useradd -m -u 1000 user && \ echo "user ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers USER user ENV HOME=/home/user WORKDIR $HOME # 3. Copy our startup script into the container COPY --chown=user:user entrypoint.sh /home/user/entrypoint.sh RUN chmod +x /home/user/entrypoint.sh # 4. Hugging Face Spaces always look at port 7860 EXPOSE 7860 # 5. Start the computer simulation ENTRYPOINT ["/home/user/entrypoint.sh"]