Spaces:
Sleeping
Sleeping
Download Dockerfile from Heist/content-mod-openenv: direct link, hf CLI and curl.
- Browser
- Download file 497 Bytes
-
https://huggingface.co/spaces/Heist/content-mod-openenv/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Heist/content-mod-openenv/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Heist/content-mod-openenv/resolve/main/Dockerfile
497 Bytes
| FROM python:3.11-slim | |
| RUN apt-get update && apt-get install -y --no-install-recommends curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 appuser | |
| WORKDIR /app | |
| RUN pip install --no-cache-dir \ | |
| fastapi==0.111.0 \ | |
| "uvicorn[standard]==0.29.0" \ | |
| pydantic==2.7.1 \ | |
| openai==1.30.1 \ | |
| requests==2.32.2 \ | |
| pyyaml==6.0.1 | |
| COPY --chown=appuser:appuser . . | |
| USER appuser | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"] | |