Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files1234567891011# 1. Use the highly optimized C++ llama.cpp serverFROM ghcr.io/ggerganov/llama.cpp:server# 2. Expose the port Hugging Face expects for web trafficEXPOSE 7860# 3. Download the model natively using Docker's ADD command.# This bypasses the need for apt-get entirely and automatically assigns the correct permissions!ADD --chown=1000:1000 https://huggingface.co/bartowski/gemma-2-2b-it-GGUF/resolve/main/gemma-2-2b-it-Q4_K_M.gguf /models/gemma-2b.gguf# Switch to the non-root user required by Hugging Face Spaces1234567891011# 1. Use the highly optimized C++ server from the NEW official registryFROM ghcr.io/ggml-org/llama.cpp:server# 2. Expose the port Hugging Face expects for web trafficEXPOSE 7860# 3. Download the model natively using Docker's ADD command.# This bypasses the need for apt-get entirely and assigns the correct permissions!ADD --chown=1000:1000 https://huggingface.co/bartowski/gemma-2-2b-it-GGUF/resolve/main/gemma-2-2b-it-Q4_K_M.gguf /models/gemma-2b.gguf# Switch to the non-root user required by Hugging Face Spaces
Dockerfile+3-3