Spaces:
Paused
Paused
Download Dockerfile.api from dineshb/DataPilot-AI-Agent: direct link, hf CLI and curl.
- Browser
- Download file 646 Bytes
-
https://huggingface.co/spaces/dineshb/DataPilot-AI-Agent/resolve/main/Dockerfile.api
- Command line
-
hf download hf://spaces/dineshb/DataPilot-AI-Agent/Dockerfile.api
-
curl -L -o Dockerfile.api https://huggingface.co/spaces/dineshb/DataPilot-AI-Agent/resolve/main/Dockerfile.api
646 Bytes
| FROM python:3.12-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=1 | |
| WORKDIR /app | |
| RUN addgroup --system datapilot && adduser --system --ingroup datapilot datapilot | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY datapilot ./datapilot | |
| COPY api ./api | |
| RUN mkdir -p /app/artifacts && chown -R datapilot:datapilot /app | |
| USER datapilot | |
| EXPOSE 8000 | |
| HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \ | |
| CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')" | |
| CMD ["uvicorn", "api.main:app", "--host=0.0.0.0", "--port=8000"] | |