Spaces:
Sleeping
Sleeping
Download Dockerfile from sovinfra/sovapi-arena: direct link, hf CLI and curl.
- Browser
- Download file 840 Bytes
-
https://huggingface.co/spaces/sovinfra/sovapi-arena/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/sovinfra/sovapi-arena/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/sovinfra/sovapi-arena/resolve/main/Dockerfile
840 Bytes
| FROM python:3.12-slim-bookworm@sha256:76d4b7b6305788c6b4c6a19d6a22a3921bf802e9af4d5e1e5bd771208dba74bf | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 | |
| RUN useradd --create-home --uid 1000 user | |
| USER user | |
| WORKDIR $HOME/app | |
| COPY --chown=user requirements.txt ./ | |
| RUN python -m pip install --user --no-cache-dir --upgrade pip \ | |
| && python -m pip install --user --no-cache-dir -r requirements.txt | |
| COPY --chown=user app.py index.html legal.html terms.html ./ | |
| EXPOSE 7860 | |
| HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \ | |
| CMD python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:7860/health', timeout=3)" | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--proxy-headers", "--forwarded-allow-ips", "*"] | |