Download Dockerfile from Himankpro/Final: direct link, hf CLI and curl.
- Browser
- Download file 582 Bytes
-
https://huggingface.co/spaces/Himankpro/Final/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Himankpro/Final/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Himankpro/Final/resolve/main/Dockerfile
582 Bytes
| # MiroFish API — Docker (Hugging Face Spaces, Fly, etc.) | |
| # Build context must be this backend/ directory (contains app/, wsgi.py, requirements.txt). | |
| FROM python:3.11-slim-bookworm | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| ENV PYTHONUNBUFFERED=1 | |
| EXPOSE 7860 | |
| CMD gunicorn --bind "0.0.0.0:${PORT:-7860}" --workers 1 --threads 4 --timeout 600 --worker-tmp-dir /dev/shm wsgi:app | |