Spaces:
Sleeping
Sleeping
Download Dockerfile from YoAkatsuki/server: direct link, hf CLI and curl.
- Browser
- Download file 413 Bytes
-
https://huggingface.co/spaces/YoAkatsuki/server/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/YoAkatsuki/server/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/YoAkatsuki/server/resolve/main/Dockerfile
413 Bytes
| # Use a stable Python base | |
| FROM python:3.10-slim | |
| # set working dir | |
| WORKDIR /app | |
| # copy files | |
| COPY . /app | |
| # install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # expose default Space port (7860 is HF default) | |
| EXPOSE 7860 | |
| # start the app (use PORT env var set by HF - default 7860) | |
| CMD ["sh", "-c", "uvicorn server:app --host 0.0.0.0 --port ${PORT:-7860} --proxy-headers"] | |