FROM ubuntu:22.04 # Prevent interactive prompts ENV DEBIAN_FRONTEND=noninteractive # Install dependencies RUN apt-get update && apt-get install -y \ wget \ unzip \ xvfb \ python3 \ python3-pip \ curl \ libgtk-3-0 \ libnotify4 \ libnss3 \ libxss1 \ libxtst6 \ xdg-utils \ libatspi2.0-0 \ libdrm2 \ libgbm1 \ libasound2 \ && rm -rf /var/lib/apt/lists/* # Install Python packages for keep-alive RUN pip3 install flask requests APScheduler # Set working directory WORKDIR /app # Download and extract FeelingSurf (use x64 version for Hugging Face) RUN wget -q https://github.com/feelingsurf/viewer/releases/download/2.5.0/FeelingSurfViewer-linux-x64-2.5.0.zip && \ unzip -q FeelingSurfViewer-linux-x64-2.5.0.zip && \ rm FeelingSurfViewer-linux-x64-2.5.0.zip && \ chmod +x FeelingSurfViewer # Create enhanced status page with auto-refresh and external ping trigger RUN echo '\n\ \n\
\n\Status: 🟢 Always Running
\n\User: alllogin
\n\Space URL: huijio/testsurf
\n\Mode: Headless Browser
\n\Version: 2.5.0
\n\Last Activity:
\n\Internal Pings: 0
\n\https://huijio-testsurf.hf.space/health