Update Dockerfile
Browse files123456789101112132 unmodified lines161718# 1. Install System Dependencies (Updated for Debian Trixie)RUN apt-get update && apt-get install -y \wget \gnupg \unzip \xvfb \# libgl1-mesa-glx is replaced by these two:libgl1 \libglx-mesa0 \# Other necessary display/browser libslibnss3 \libxss1 \libasound2 \2 unmodified lineschromium \chromium-driver \&& rm -rf /var/lib/apt/lists/*1234567891011121314152 unmodified lines181920212223242526272829303132333435# 1. Start with the Python Base ImageFROM python:3.10-slim# 2. Install System Dependencies# Note: We use \ to break lines. Do not put comments # inside the command.RUN apt-get update && apt-get install -y \wget \gnupg \unzip \xvfb \libgl1 \libglx-mesa0 \libnss3 \libxss1 \libasound2 \2 unmodified lineschromium \chromium-driver \&& rm -rf /var/lib/apt/lists/*# 3. Set environment variablesENV DISPLAY=:99ENV PYTHONUNBUFFERED=1# 4. Setup WorkspaceWORKDIR /appCOPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txt# 5. Copy your codeCOPY . .# 6. Start Virtual Screen and your AppCMD ["sh", "-c", "Xvfb :99 -screen 0 1280x720x24 & python app.py"]
Dockerfile+20-3