ga / Dockerfile
ShadowHunter222's picture
Update Dockerfile
84ef76d verified
raw
history blame contribute delete
753 Bytes
FROM ghcr.io/ggml-org/llama.cpp:server
RUN apt update && apt install wget -y && rm -rf /var/lib/apt/lists/*
# 1. THE MAIN MODEL: Using Q4_K_M for speed on 2vCPUs
RUN wget "https://huggingface.co/unsloth/gemma-4-E2B-it-GGUF/resolve/main/gemma-4-E2B-it-Q4_K_M.gguf" -O /model.gguf
# 2. THE PROJECTOR: Explicitly verified filename for this repo
RUN wget "https://huggingface.co/unsloth/gemma-4-E2B-it-GGUF/resolve/main/mmproj-F16.gguf" -O /mmproj.gguf
# Matching your 2vCPU exactly
# -c 4096 is the safety limit to prevent RAM crashes
# Clear the entrypoint and use shell form CMD to silence all logs
ENTRYPOINT []
CMD /app/llama-server -m /model.gguf --mmproj /mmproj.gguf --port 7860 --host 0.0.0.0 -t 2 --mlock -c 4096 --log-disable > /dev/null 2>&1