Dmitry Beresnev commited on
Commit
950f41b
·
1 Parent(s): f64a284

fix dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -7,11 +7,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
7
  cmake \
8
  ca-certificates \
9
  libcurl4-openssl-dev \
 
 
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
  # Clone and build llama.cpp with SSL support for HuggingFace Hub
13
  WORKDIR /build
14
- ARG CACHEBUST=5
15
  RUN git clone https://github.com/ggerganov/llama.cpp.git && \
16
  cd llama.cpp && \
17
  cmake -B build -DCMAKE_BUILD_TYPE=Release \
@@ -20,7 +22,8 @@ RUN git clone https://github.com/ggerganov/llama.cpp.git && \
20
  -DGGML_AVX=OFF \
21
  -DGGML_FMA=OFF \
22
  -DGGML_F16C=OFF \
23
- -DLLAMA_CURL=ON && \
 
24
  cmake --build build --config Release --target llama-server -j1 && \
25
  echo "=== Binary dependencies ===" && \
26
  ldd build/bin/llama-server || true
 
7
  cmake \
8
  ca-certificates \
9
  libcurl4-openssl-dev \
10
+ libssl-dev \
11
+ pkg-config \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
  # Clone and build llama.cpp with SSL support for HuggingFace Hub
15
  WORKDIR /build
16
+ ARG CACHEBUST=6
17
  RUN git clone https://github.com/ggerganov/llama.cpp.git && \
18
  cd llama.cpp && \
19
  cmake -B build -DCMAKE_BUILD_TYPE=Release \
 
22
  -DGGML_AVX=OFF \
23
  -DGGML_FMA=OFF \
24
  -DGGML_F16C=OFF \
25
+ -DLLAMA_CURL=ON \
26
+ -DLLAMA_OPENSSL=ON && \
27
  cmake --build build --config Release --target llama-server -j1 && \
28
  echo "=== Binary dependencies ===" && \
29
  ldd build/bin/llama-server || true