2025-12-09 11:30:17 +01:00
|
|
|
FROM mcr.microsoft.com/playwright/python:v1.57.0-jammy
|
2025-12-08 14:44:59 +01:00
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
# Install dependencies
|
|
|
|
|
COPY requirements.txt .
|
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
|
|
|
# Copy application
|
2025-12-27 11:59:04 +01:00
|
|
|
COPY main.py .
|
|
|
|
|
|
|
|
|
|
# Copy the handlers directory into the Docker image
|
|
|
|
|
COPY handlers/ ./handlers/
|
2025-12-08 14:44:59 +01:00
|
|
|
|
|
|
|
|
# Create data directory
|
|
|
|
|
RUN mkdir -p /data && chmod 777 /data
|
|
|
|
|
|
2025-12-27 11:59:04 +01:00
|
|
|
CMD ["python", "-u", "main.py"]
|