Spaces:
Sleeping
Sleeping
Download Dockerfile from Samixx/voting-bot-llm: direct link, hf CLI and curl.
- Browser
- Download file 634 Bytes
-
https://huggingface.co/spaces/Samixx/voting-bot-llm/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Samixx/voting-bot-llm/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Samixx/voting-bot-llm/resolve/main/Dockerfile
634 Bytes
| FROM ghcr.io/ggml-org/llama.cpp:server | |
| USER root | |
| RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Store downloaded HF models inside /app/models | |
| ENV LLAMA_CACHE=/app/models | |
| EXPOSE 7860 | |
| HEALTHCHECK --interval=30s --timeout=5s --start-period=120s --retries=3 \ | |
| CMD curl -f http://localhost:7860/health || exit 1 | |
| ENTRYPOINT ["/app/llama-server"] | |
| CMD ["-hf", "unsloth/DeepSeek-R1-Distill-Qwen-7B-GGUF:Q4_K_M", \ | |
| "--host", "0.0.0.0", \ | |
| "--port", "7860", \ | |
| "--threads", "2", \ | |
| "--ctx-size", "32768", \ | |
| "-ngl", "0", \ | |
| "--batch-size", "512", \ | |
| "--jinja"] | |