Spaces:
Runtime error
Runtime error
Download Dockerfile from Umithan/universal-runtime: direct link, hf CLI and curl.
- Browser
- Download file 478 Bytes
-
https://huggingface.co/spaces/Umithan/universal-runtime/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Umithan/universal-runtime/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Umithan/universal-runtime/resolve/main/Dockerfile
478 Bytes
| FROM python:3.9-slim | |
| # Install build essential tools required to compile llama.cpp binaries | |
| RUN apt-get update && apt-get install -y build-essential python3-dev && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /code | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| COPY . . | |
| # Expose port 7860 as strictly required by Hugging Face Spaces infrastructure | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |