CoolFace
Apppublic

77ruk8/AI-Computer-Use-Sandbox

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes
Dockerfile47 linesDownload Raw Back to root
1FROM ubuntu:22.042 3# Bypass all interactive prompts during installation4ENV DEBIAN_FRONTEND=noninteractive5 6# Install the Full Desktop Environment, Web-RDP (noVNC), and Bot Hosting Tools7RUN apt-get update && apt-get install -y \8    xfce4 xfce4-terminal \9    x11vnc xvfb \10    novnc websockify \11    python3 python3-pip \12    curl wget git htop \13    chromium-browser \14    && rm -rf /var/lib/apt/lists/*15 16# Create your Boss user profile17RUN useradd -m -u 1000 pekka18USER pekka19WORKDIR /home/pekka20 21# Install some Python bot libraries (for your antigravity & app testing)22RUN pip3 install requests fastapi selenium23 24# The Master Startup Script25# This creates the virtual screen, sets your VNC password, and bridges it to port 786026RUN echo '#!/bin/bash\n\27export DISPLAY=:0\n\28echo "Starting Virtual Display..."\n\29Xvfb :0 -screen 0 1280x720x24 &\n\30sleep 2\n\31echo "Starting XFCE4 Desktop..."\n\32startxfce4 &\n\33echo "Setting up Pekka Security..."\n\34mkdir -p ~/.vnc\n\35x11vnc -storepasswd ${VNC_PASS:-pekkaboss} ~/.vnc/passwd\n\36echo "Starting VNC Server..."\n\37x11vnc -display :0 -rfbauth ~/.vnc/passwd -listen localhost -xkb -forever &\n\38echo "Bridging Desktop to Web Link (Port 7860)..."\n\39/usr/share/novnc/utils/novnc_proxy --vnc localhost:5900 --listen 0.0.0.0:7860\n\40' > /home/pekka/start.sh && chmod +x /home/pekka/start.sh41 42# Expose the HF mandatory port43EXPOSE 786044 45# Launch the environment46CMD ["/home/pekka/start.sh"]47