Spaces:
Sleeping
Sleeping
Download Dockerfile from roseforyou/api: direct link, hf CLI and curl.
- Browser
- Download file 361 Bytes
-
https://huggingface.co/spaces/roseforyou/api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/roseforyou/api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/roseforyou/api/resolve/main/Dockerfile
361 Bytes
| FROM python:3.11-slim as builder | |
| WORKDIR /app | |
| RUN pip install --upgrade pip | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir --prefix="/install" -r requirements.txt | |
| FROM python:3.11-slim | |
| WORKDIR /app | |
| COPY --from=builder /install /usr/local | |
| COPY app.py . | |
| EXPOSE 7860 | |
| ENV PYTHONUNBUFFERED=1 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |