Spaces:
Sleeping
Sleeping
Download Dockerfile from omjhamtani77/Jarvis-API: direct link, hf CLI and curl.
- Browser
- Download file 542 Bytes
-
https://huggingface.co/spaces/omjhamtani77/Jarvis-API/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/omjhamtani77/Jarvis-API/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/omjhamtani77/Jarvis-API/resolve/main/Dockerfile
542 Bytes
| FROM python:3.10-slim | |
| # Install minimum system dependencies for C++ execution templates | |
| RUN apt-get update && apt-get install -y git libgomp1 | |
| # Install runtime python dependencies | |
| RUN pip install --upgrade pip | |
| RUN pip install llama-cpp-python --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu | |
| RUN pip install fastapi uvicorn huggingface_hub | |
| # Copy the application script into the container workspace | |
| COPY app.py . | |
| # Expose the internal network port | |
| EXPOSE 7860 | |
| # Launch the secure FastAPI app | |
| CMD ["python3", "app.py"] |