Download Dockerfile from nmysore/seng-api: direct link, hf CLI and curl.
- Browser
- Download file 507 Bytes
-
https://huggingface.co/spaces/nmysore/seng-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/nmysore/seng-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/nmysore/seng-api/resolve/main/Dockerfile
507 Bytes
| FROM python:3.11-slim | |
| RUN pip install --no-cache-dir \ | |
| torch==2.5.1 --index-url https://download.pytorch.org/whl/cpu \ | |
| && pip install --no-cache-dir \ | |
| transformers==4.51.3 \ | |
| safetensors \ | |
| accelerate \ | |
| fastapi==0.115.12 \ | |
| uvicorn[standard]==0.34.2 | |
| RUN useradd -m -u 1000 appuser | |
| COPY --chown=1000:1000 server.py /app/server.py | |
| USER appuser | |
| ENV MODEL_DIR=nmysore/seng-model | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860", "--app-dir", "/app"] | |