Spaces:
Sleeping
Sleeping
Download Dockerfile from DeepParmar/Huggingface: direct link, hf CLI and curl.
- Browser
- Download file 446 Bytes
-
https://huggingface.co/spaces/DeepParmar/Huggingface/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/DeepParmar/Huggingface/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/DeepParmar/Huggingface/resolve/main/Dockerfile
446 Bytes
| FROM python:3.11 | |
| # Create a user with UID 1000 (Required for Hugging Face Spaces) | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /app | |
| # Copy requirements and install | |
| COPY --chown=user requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy all application files | |
| COPY --chown=user . . | |
| # Run the Flask app on Port 7860 using Gunicorn | |
| CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"] | |