Spaces:
Sleeping
Sleeping
Download Dockerfile from Sanya2025/Centaurus_cpp: direct link, hf CLI and curl.
- Browser
- Download file 500 Bytes
-
https://huggingface.co/spaces/Sanya2025/Centaurus_cpp/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Sanya2025/Centaurus_cpp/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Sanya2025/Centaurus_cpp/resolve/main/Dockerfile
500 Bytes
| FROM python:3.10-slim | |
| RUN apt-get update && apt-get install -y \ | |
| gcc g++ make cmake git libopenblas-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Prebuilt llama-cpp-python для CPU HF Spaces | |
| RUN pip install --no-cache-dir \ | |
| https://huggingface.co/Luigi/llama-cpp-python-wheels-hf-spaces-free-cpu/resolve/main/llama_cpp_python-0.3.22-cp310-cp310-linux_x86_64.whl | |
| RUN pip install --no-cache-dir huggingface-hub fastapi uvicorn | |
| WORKDIR /app | |
| COPY app.py . | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] |