Spaces:
Paused
Paused
Download deploy/serving/Dockerfile from chane335/permanence: direct link, hf CLI and curl.
- Browser
- Download file 663 Bytes
-
https://huggingface.co/spaces/chane335/permanence/resolve/main/deploy/serving/Dockerfile
- Command line
-
hf download hf://spaces/chane335/permanence/deploy/serving/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/chane335/permanence/resolve/main/deploy/serving/Dockerfile
663 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONPATH=/app | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| WORKDIR /app | |
| # Install server dependencies | |
| COPY server/requirements.txt /app/server/requirements.txt | |
| RUN pip install --no-cache-dir -r /app/server/requirements.txt | |
| # Copy the full project | |
| COPY . /app | |
| # Install the permanence package | |
| RUN pip install --no-cache-dir -e /app | |
| EXPOSE 7860 | |
| HEALTHCHECK --interval=30s --timeout=10s --start-period=15s --retries=3 \ | |
| CMD python -c "import requests; requests.get('http://localhost:7860/health').raise_for_status()" || exit 1 | |
| CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"] | |