| FROM python:3.11-slim |
|
|
| WORKDIR /app |
|
|
| ENV PYTHONDONTWRITEBYTECODE=1 \ |
| PYTHONUNBUFFERED=1 |
|
|
| RUN apt-get update && apt-get install -y --no-install-recommends \ |
| curl \ |
| wget \ |
| ca-certificates \ |
| libnss3 \ |
| libatk1.0-0 \ |
| libatk-bridge2.0-0 \ |
| libcups2 \ |
| libdrm2 \ |
| libxkbcommon0 \ |
| libxcomposite1 \ |
| libxdamage1 \ |
| libxfixes3 \ |
| libxrandr2 \ |
| libgbm1 \ |
| libasound2 \ |
| libxshmfence1 \ |
| libx11-6 \ |
| libx11-xcb1 \ |
| libxcb1 \ |
| libxext6 \ |
| libxrender1 \ |
| fonts-liberation \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| COPY requirements.txt . |
| RUN pip install --no-cache-dir -r requirements.txt && \ |
| python -m playwright install chromium |
|
|
| COPY . . |
|
|
| RUN mkdir -p /app/data /app/logs /app/spawned_bots |
|
|
| CMD ["python", "app.py"] |
|
|