| FROM python:3.11-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| PLAYWRIGHT_BROWSERS_PATH=/ms-playwright \ | |
| PORT=7860 | |
| WORKDIR /app | |
| COPY requirements.txt /app/requirements.txt | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| ca-certificates \ | |
| curl \ | |
| fonts-liberation \ | |
| && rm -rf /var/lib/apt/lists/* \ | |
| && pip install --upgrade pip \ | |
| && pip install -r /app/requirements.txt \ | |
| && python -m playwright install --with-deps chromium | |
| COPY . /app | |
| EXPOSE 7860 | |
| CMD ["python", "main.py"] |