Download Dockerfile from api-relay/api_relay: direct link, hf CLI and curl.
- Browser
- Download file 331 Bytes
-
https://huggingface.co/spaces/api-relay/api_relay/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/api-relay/api_relay/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/api-relay/api_relay/resolve/main/Dockerfile
331 Bytes
| FROM python:3.12-slim | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| ENV PERSIST_DIR=/data/relay \ | |
| RETENTION_SECONDS=10800 | |
| EXPOSE 7860 | |
| # Attach Space Persistent Storage at /data for durability across rebuilds. | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |