Spaces:
Paused
Paused
Download Dockerfile.worker from dineshb/DataPilot-AI-Agent: direct link, hf CLI and curl.
- Browser
- Download file 470 Bytes
-
https://huggingface.co/spaces/dineshb/DataPilot-AI-Agent/resolve/main/Dockerfile.worker
- Command line
-
hf download hf://spaces/dineshb/DataPilot-AI-Agent/Dockerfile.worker
-
curl -L -o Dockerfile.worker https://huggingface.co/spaces/dineshb/DataPilot-AI-Agent/resolve/main/Dockerfile.worker
470 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 | |
| RUN pip install --no-cache-dir fastapi uvicorn pydantic | |
| COPY datapilot/safety.py ./datapilot/safety.py | |
| COPY datapilot/__init__.py ./datapilot/__init__.py | |
| COPY worker ./worker | |
| USER datapilot | |
| EXPOSE 8010 | |
| CMD ["uvicorn", "worker.main:app", "--host=0.0.0.0", "--port=8010"] | |