ilhooq commited on
Commit
3a66347
1 Parent(s): 31e289c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -2
Dockerfile CHANGED
@@ -1,6 +1,26 @@
1
- FROM ghcr.io/ggerganov/llama.cpp:server
2
 
3
- RUN apt update && apt install -y curl
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
  RUN mkdir /models
6
 
 
1
+ ARG UBUNTU_VERSION=22.04
2
 
3
+ FROM ubuntu:$UBUNTU_VERSION as build
4
+
5
+ RUN apt-get update && \
6
+ apt-get install -y build-essential git libcurl4-openssl-dev
7
+
8
+ RUN git clone https://github.com/ggerganov/llama.cpp.git
9
+
10
+ WORKDIR /llama.cpp
11
+
12
+ ENV LLAMA_CURL=1
13
+
14
+ RUN make
15
+
16
+ FROM ubuntu:$UBUNTU_VERSION as runtime
17
+
18
+ RUN apt-get update && \
19
+ apt-get install -y libcurl4-openssl-dev
20
+
21
+ COPY --from=build /app/server /server
22
+
23
+ ENV LC_ALL=C.utf8
24
 
25
  RUN mkdir /models
26