Spaces:
Paused
Paused
| FROM python:3.10-slim | |
| RUN apt-get update && apt-get install -y \ | |
| wget gnupg unzip curl \ | |
| chromium chromium-driver \ | |
| fonts-liberation \ | |
| && rm -rf /var/lib/apt/lists/* | |
| ENV CHROME_BIN=/usr/bin/chromium | |
| ENV CHROMEDRIVER=/usr/bin/chromedriver | |
| COPY requirements.txt /app/requirements.txt | |
| WORKDIR /app | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY app.py /app/app.py | |
| EXPOSE 7860 | |
| CMD ["gunicorn", "-w", "1", "-b", "0.0.0.0:7860", "app:app"] | |