Spaces:
Runtime error
Runtime error
Download Dockerfile from dpadhan/Forward_bot: direct link, hf CLI and curl.
- Browser
- Download file 520 Bytes
-
https://huggingface.co/spaces/dpadhan/Forward_bot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/dpadhan/Forward_bot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/dpadhan/Forward_bot/resolve/main/Dockerfile
520 Bytes
| # Use the official Playwright Python image (Jammy is stable) | |
| FROM mcr.microsoft.com/playwright/python:v1.44.0-jammy | |
| # Set work directory | |
| WORKDIR /app | |
| # Install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| RUN pip install --no-cache-dir flask # Added for health check | |
| # Install Playwright browsers (Chromium) | |
| RUN playwright install chromium | |
| # Copy project files | |
| COPY . . | |
| # Expose the port Hugging Face looks for | |
| EXPOSE 7860 | |
| # Run the application | |
| CMD ["python", "bot.py"] | |