Spaces:
Running
Running
| # Use the official Python 3.12 image | |
| FROM python:3.12-slim | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy requirements and install | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Install Playwright browser and system dependencies | |
| RUN playwright install --with-deps chromium | |
| # Copy the application code | |
| COPY . . | |
| # Hugging Face Spaces uses port 7860 by default | |
| ENV PORT=7860 | |
| ENV DEBUG=false | |
| # Expose the port | |
| EXPOSE 7860 | |
| # Run the application with waitress for production | |
| CMD ["python", "app.py"] | |