Spaces:
Runtime error
Runtime error
| FROM python:3.11-slim | |
| # Install system dependencies for Chrome | |
| RUN apt-get update && apt-get install -y \ | |
| wget \ | |
| unzip \ | |
| curl \ | |
| gnupg \ | |
| libglib2.0-0 \ | |
| libnss3 \ | |
| libgconf-2-4 \ | |
| libfontconfig1 \ | |
| libx11-6 \ | |
| libx11-xcb1 \ | |
| libxi6 \ | |
| libxcomposite1 \ | |
| libxdamage1 \ | |
| libxrandr2 \ | |
| libxtst6 \ | |
| libxss1 \ | |
| libxext6 \ | |
| libxrender1 \ | |
| libasound2 \ | |
| libatk1.0-0 \ | |
| libatk-bridge2.0-0 \ | |
| libcups2 \ | |
| libdbus-1-3 \ | |
| libdrm2 \ | |
| libgbm1 \ | |
| libgtk-3-0 \ | |
| libpango-1.0-0 \ | |
| libcairo2 \ | |
| libappindicator3-1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install Google Chrome | |
| RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ | |
| && echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \ | |
| && apt-get update \ | |
| && apt-get install -y google-chrome-stable \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY app.py . | |
| CMD ["python", "app.py"] |