tusarway commited on
Commit
195817e
·
verified ·
1 Parent(s): 72ad5f6

up for cache

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -3
Dockerfile CHANGED
@@ -2,7 +2,7 @@ FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
5
- # System build deps for llama-cpp-python (CPU + OpenBLAS for speed)
6
  RUN apt-get update && apt-get install -y \
7
  build-essential \
8
  cmake \
@@ -11,15 +11,20 @@ RUN apt-get update && apt-get install -y \
11
  pkg-config \
12
  git \
13
  wget \
 
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
- # Install Python deps — compile llama-cpp-python with OpenBLAS
 
 
 
 
17
  COPY requirements.txt .
18
  RUN CMAKE_ARGS="-DGGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS" \
19
  FORCE_CMAKE=1 \
20
  pip install --no-cache-dir -r requirements.txt
21
 
22
- # Download the model during build
23
  RUN mkdir -p /app/models && \
24
  wget -q https://huggingface.co/unsloth/gemma-4-26B-A4B-it-GGUF/resolve/main/gemma-4-26B-A4B-it-UD-IQ3_XXS.gguf -O /app/models/gemma-4-26B-A4B-it-UD-IQ3_XXS.gguf
25
 
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install system dependencies (including ccache and wget)
6
  RUN apt-get update && apt-get install -y \
7
  build-essential \
8
  cmake \
 
11
  pkg-config \
12
  git \
13
  wget \
14
+ ccache \
15
  && rm -rf /var/lib/apt/lists/*
16
 
17
+ # Set up ccache
18
+ ENV CCACHE_DIR=/tmp/ccache
19
+ ENV PATH="/usr/lib/ccache:$PATH"
20
+
21
+ # Install Python dependencies
22
  COPY requirements.txt .
23
  RUN CMAKE_ARGS="-DGGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS" \
24
  FORCE_CMAKE=1 \
25
  pip install --no-cache-dir -r requirements.txt
26
 
27
+ # Download the model during build (automatic)
28
  RUN mkdir -p /app/models && \
29
  wget -q https://huggingface.co/unsloth/gemma-4-26B-A4B-it-GGUF/resolve/main/gemma-4-26B-A4B-it-UD-IQ3_XXS.gguf -O /app/models/gemma-4-26B-A4B-it-UD-IQ3_XXS.gguf
30