| FROM python:3.11-slim |
|
|
| |
| RUN apt-get update && apt-get install -y \ |
| wget curl gnupg ca-certificates \ |
| libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 \ |
| libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 \ |
| libgbm1 libasound2 libpango-1.0-0 libcairo2 \ |
| --no-install-recommends && rm -rf /var/lib/apt/lists/* |
|
|
| WORKDIR /app |
|
|
| |
| COPY requirements.txt . |
| RUN pip install --no-cache-dir -r requirements.txt |
|
|
| |
| RUN playwright install chromium |
| RUN playwright install-deps chromium |
|
|
| |
| COPY app.py . |
| COPY cv_challenge.py . |
|
|
| EXPOSE 7860 |
|
|
| CMD ["python", "app.py"] |
|
|