Dmitry Beresnev commited on
Commit
db57dc8
·
1 Parent(s): 25f92ca

fix dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -11,13 +11,17 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
11
 
12
  # Clone and build llama.cpp
13
  WORKDIR /build
 
 
14
  RUN git clone https://github.com/ggerganov/llama.cpp.git && \
15
  cd llama.cpp && \
16
  cmake -B build -DCMAKE_BUILD_TYPE=Release \
17
  -DGGML_NATIVE=OFF \
18
  -DGGML_AVX2=OFF \
19
  -DGGML_OPENMP=OFF && \
20
- cmake --build build --config Release --target llama-server -j$(nproc)
 
 
21
 
22
  # Runtime stage
23
  FROM debian:bookworm-slim
 
11
 
12
  # Clone and build llama.cpp
13
  WORKDIR /build
14
+ # Cache bust to force fresh build
15
+ ARG CACHEBUST=1
16
  RUN git clone https://github.com/ggerganov/llama.cpp.git && \
17
  cd llama.cpp && \
18
  cmake -B build -DCMAKE_BUILD_TYPE=Release \
19
  -DGGML_NATIVE=OFF \
20
  -DGGML_AVX2=OFF \
21
  -DGGML_OPENMP=OFF && \
22
+ cmake --build build --config Release --target llama-server -j$(nproc) && \
23
+ echo "=== Binary dependencies ===" && \
24
+ ldd build/bin/llama-server || true
25
 
26
  # Runtime stage
27
  FROM debian:bookworm-slim