ramedde commited on
Commit
eef9dad
·
verified ·
1 Parent(s): 8434219

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -5
Dockerfile CHANGED
@@ -1,15 +1,19 @@
1
  FROM ubuntu:24.04
2
 
3
  RUN apt-get update && apt-get install -y \
4
- python3 python3-pip curl wget unzip \
 
5
  && rm -rf /var/lib/apt/lists/*
6
 
7
  WORKDIR /app
8
 
9
- # download precompiled llama.cpp (example release)
10
- RUN wget https://github.com/ggml-org/llama.cpp/releases/latest/download/llama-bin-ubuntu-x64.zip && \
11
- unzip llama-bin-ubuntu-x64.zip && \
12
- rm llama-bin-ubuntu-x64.zip
 
 
 
13
 
14
  COPY requirements.txt .
15
  RUN pip3 install --no-cache-dir --break-system-packages -r requirements.txt
 
1
  FROM ubuntu:24.04
2
 
3
  RUN apt-get update && apt-get install -y \
4
+ python3 python3-pip \
5
+ curl wget tar \
6
  && rm -rf /var/lib/apt/lists/*
7
 
8
  WORKDIR /app
9
 
10
+ # ---- download precompiled llama.cpp ----
11
+ RUN wget -O llama.tar.gz https://github.com/ggml-org/llama.cpp/releases/download/b9310/llama-b9310-bin-ubuntu-x64.tar.gz && \
12
+ tar -xzf llama.tar.gz && \
13
+ rm llama.tar.gz
14
+
15
+ # rename folder for simplicity (important)
16
+ RUN mv llama-* llama
17
 
18
  COPY requirements.txt .
19
  RUN pip3 install --no-cache-dir --break-system-packages -r requirements.txt