Spaces:
Runtime error
Runtime error
| # Use official Playwright Python image (includes Chromium + deps) | |
| FROM mcr.microsoft.com/playwright/python:v1.42.0-jammy | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy project files | |
| COPY . . | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir flask playwright | |
| # Install Playwright browsers (already included, but safe) | |
| RUN playwright install chromium | |
| # Expose Flask port | |
| EXPOSE 5000 | |
| # Prevent Flask from using reloader inside Docker | |
| ENV FLASK_ENV=production | |
| # Run the app | |
| CMD ["python", "app.py"] | |