Spaces:
Sleeping
Sleeping
Download Dockerfile from Gagan0141/Webscraping: direct link, hf CLI and curl.
- Browser
- Download file 551 Bytes
-
https://huggingface.co/spaces/Gagan0141/Webscraping/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Gagan0141/Webscraping/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Gagan0141/Webscraping/resolve/main/Dockerfile
551 Bytes
| # Use Python 3.11.7 | |
| FROM python:3.11.7-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| WORKDIR /app | |
| # Install OS dependencies | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy dependency list | |
| COPY requirements.txt . | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy entire project | |
| COPY . . | |
| # Expose port required by HuggingFace | |
| EXPOSE 7860 | |
| # Run Flask app on 0.0.0.0:7860 (HF requirement) | |
| CMD ["python", "app.py"] | |