File size: 804 Bytes
3279d29 89e6b8d 3279d29 eef9dad 3279d29 89e6b8d 3279d29 89e6b8d eef9dad 1482492 eef9dad 89e6b8d 3279d29 8434219 89e6b8d 3279d29 89e6b8d 3279d29 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
FROM ubuntu:24.04
RUN apt-get update && apt-get install -y \
python3 python3-pip \
curl wget tar \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# ---- download precompiled llama.cpp ----
RUN wget -O llama.tar.gz https://github.com/ggml-org/llama.cpp/releases/download/b9310/llama-b9310-bin-ubuntu-x64.tar.gz && \
mkdir llama && \
tar -xzf llama.tar.gz -C llama --strip-components=1 && \
rm llama.tar.gz
COPY requirements.txt .
RUN pip3 install --no-cache-dir --break-system-packages -r requirements.txt
# ---- bake model into image so container starts instantly ----
RUN python3 -c "\
from huggingface_hub import hf_hub_download; \
hf_hub_download(repo_id='LiquidAI/LFM2.5-350M-GGUF', filename='LFM2.5-350M-Q8_0.gguf')"
COPY . .
EXPOSE 7860
CMD ["python3", "app.py"] |