Spaces:
Sleeping
Sleeping
Download Dockerfile from vasanthfeb13/soc-triage-env: direct link, hf CLI and curl.
- Browser
- Download file 550 Bytes
-
https://huggingface.co/spaces/vasanthfeb13/soc-triage-env/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/vasanthfeb13/soc-triage-env/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/vasanthfeb13/soc-triage-env/resolve/main/Dockerfile
550 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY . /app | |
| RUN pip install --no-cache-dir -r /app/server/requirements.txt && \ | |
| pip install --no-cache-dir /app | |
| ENV PYTHONUNBUFFERED=1 | |
| EXPOSE 7860 | |
| HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ | |
| CMD curl -f http://localhost:7860/health || exit 1 | |
| ENV ENABLE_WEB_INTERFACE=true | |
| CMD ["uvicorn", "soc_triage_env.server.app:app", "--host", "0.0.0.0", "--port", "7860"] | |