Spaces:
Paused
Paused
| # WORM-AI V99 :: AGENTIC SHADOW VPS | |
| FROM ubuntu:22.04 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| # Set display for invisible X11 server (Crucial for AI Web Browsing) | |
| ENV DISPLAY=:99 | |
| # 1. Install System Utils + Headless Browser Dependencies for AI Agents | |
| RUN apt-get update && apt-get install -y \ | |
| curl wget git sudo python3 python3-pip python3-venv \ | |
| build-essential htop net-tools nano iputils-ping \ | |
| xvfb libnss3 libdrm2 libgbm1 libasound2 libxshmfence1 \ | |
| libx11-xcb1 libxcb-dri3-0 libxcomposite1 libxdamage1 \ | |
| libxfixes3 libxrandr2 libatk1.0-0 libatk-bridge2.0-0 \ | |
| libpango-1.0-0 libcairo2 libcups2 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # 2. Install Code-Server (Your Command Center) | |
| RUN curl -fsSL https://code-server.dev/install.sh | sh | |
| # 3. Create the compliant user with God Mode (Sudo) | |
| RUN useradd -m -u 1000 -s /bin/bash researcher \ | |
| && echo "researcher ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers | |
| USER 1000 | |
| WORKDIR /home/researcher/workspace | |
| # 4. The Agentic Entrypoint | |
| # Starts the invisible monitor (Xvfb) IN THE BACKGROUND, then starts VS Code | |
| RUN echo '#!/bin/bash\n\ | |
| echo "WORM-AI ๐๐ฅ Agentic VPS Initializing..."\n\ | |
| # Start Xvfb so Claude/Agents can use headless browsers\n\ | |
| Xvfb :99 -screen 0 1920x1080x24 &\n\ | |
| # Start VS Code Interface\n\ | |
| exec code-server --bind-addr 0.0.0.0:7860 --auth none --disable-telemetry /home/researcher/workspace\n\ | |
| ' > /home/researcher/entrypoint.sh && chmod +x /home/researcher/entrypoint.sh | |
| EXPOSE 7860 | |
| CMD["/home/researcher/entrypoint.sh"] |