Spaces:
Sleeping
Sleeping
Download Dockerfile from simar007/web-scraper: direct link, hf CLI and curl.
- Browser
- Download file 492 Bytes
-
https://huggingface.co/spaces/simar007/web-scraper/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/simar007/web-scraper/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/simar007/web-scraper/resolve/main/Dockerfile
492 Bytes
| # Use a lightweight Python base image | |
| FROM python:3.11-slim | |
| # Set work directory | |
| WORKDIR /app | |
| # Copy requirements and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy all project files | |
| COPY . . | |
| # Expose the port Hugging Face expects | |
| EXPOSE 7860 | |
| # Set environment variable for Flask | |
| ENV PORT=7860 | |
| ENV FLASK_APP=app.py | |
| ENV FLASK_ENV=production | |
| # Command to run Flask via Gunicorn | |
| CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"] | |