Spaces:
Running
Running
Download Dockerfile from varsshancoder/varsh-llm: direct link, hf CLI and curl.
- Browser
- Download file 721 Bytes
-
https://huggingface.co/spaces/varsshancoder/varsh-llm/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/varsshancoder/varsh-llm/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/varsshancoder/varsh-llm/resolve/main/Dockerfile
721 Bytes
| FROM python:3.10-slim | |
| ENV PYTHONUNBUFFERED=1 \ | |
| HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH \ | |
| HF_HOME=/home/user/.cache/huggingface \ | |
| PIP_NO_CACHE_DIR=1 | |
| WORKDIR /home/user | |
| # Build dependencies required by llama-cpp-python | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| cmake \ | |
| gcc \ | |
| g++ \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Create writable Hugging Face cache | |
| RUN mkdir -p /home/user/.cache/huggingface \ | |
| && chmod -R 777 /home/user | |
| COPY requirements.txt . | |
| RUN pip install --upgrade pip \ | |
| && pip install -r requirements.txt | |
| COPY --chown=1000 . . | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"] | |