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"]