Download Dockerfile from tensorus/api: direct link, hf CLI and curl.
- Browser
- Download file 346 Bytes
-
https://huggingface.co/spaces/tensorus/api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/tensorus/api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/tensorus/api/resolve/main/Dockerfile
346 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| COPY . . | |
| # Install dependencies and set executable permissions | |
| RUN apt-get update && \ | |
| apt-get install -y nginx && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| # Expose port 7860 (as required by Hugging Face Spaces) | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |