Spaces:
Sleeping
Sleeping
Download Dockerfile from factorstudios/content_gen: direct link, hf CLI and curl.
- Browser
- Download file 524 Bytes
-
https://huggingface.co/spaces/factorstudios/content_gen/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/factorstudios/content_gen/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/factorstudios/content_gen/resolve/main/Dockerfile
524 Bytes
| FROM python:3.13-slim | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt && \ | |
| pip install --no-cache-dir uvicorn[standard]==0.24.0 | |
| COPY content_gen.py . | |
| COPY main.py . | |
| EXPOSE 7860 | |
| ENV HOST=0.0.0.0 | |
| ENV PORT=7860 | |
| ENV WORKERS=1 | |
| HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ | |
| CMD python -c "import requests; requests.get('http://localhost:7860/health')" || exit 1 | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |