Download Dockerfile from D1ongX/HibiAPI: direct link, hf CLI and curl.
- Browser
- Download file 333 Bytes
-
https://huggingface.co/spaces/D1ongX/HibiAPI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/D1ongX/HibiAPI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/D1ongX/HibiAPI/resolve/main/Dockerfile
333 Bytes
| FROM python:bullseye | |
| EXPOSE 7860 | |
| ENV PORT=7860 \ | |
| PROCS=1 \ | |
| GENERAL_SERVER_HOST=0.0.0.0 | |
| COPY . /hibi | |
| WORKDIR /hibi | |
| RUN pip install . | |
| CMD hibiapi run --port $PORT --workers $PROCS | |
| HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \ | |
| CMD httpx --verbose --follow-redirects http://127.0.0.1:${PORT} |