CrazyMonkey0 commited on
Commit
06eacd3
·
1 Parent(s): ad141ba

fix(docker): adding a permanent version of llama

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -2
Dockerfile CHANGED
@@ -2,7 +2,14 @@ FROM python:3.12-alpine
2
  WORKDIR /app
3
 
4
  # Minimalne zależności dla Alpine
 
5
  RUN apk add --no-cache \
 
 
 
 
 
 
6
  libstdc++ \
7
  libgcc
8
 
@@ -11,8 +18,10 @@ COPY ./requirements.txt /app/requirements.txt
11
  RUN pip install --upgrade pip
12
 
13
  # Pre-built musl wheel dla Alpine - ~30 sekund
14
- RUN pip install llama-cpp-python \
15
- --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
 
 
16
 
17
  RUN pip install --no-cache-dir -r requirements.txt
18
 
 
2
  WORKDIR /app
3
 
4
  # Minimalne zależności dla Alpine
5
+
6
  RUN apk add --no-cache \
7
+ gcc \
8
+ g++ \
9
+ make \
10
+ cmake \
11
+ musl-dev \
12
+ linux-headers \
13
  libstdc++ \
14
  libgcc
15
 
 
18
  RUN pip install --upgrade pip
19
 
20
  # Pre-built musl wheel dla Alpine - ~30 sekund
21
+ RUN pip install \
22
+ https://github.com/abetlen/llama-cpp-python/releases/download/v0.3.2/llama_cpp_python-0.3.2-cp312-cp312-linux_x86_64.whl
23
+
24
+
25
 
26
  RUN pip install --no-cache-dir -r requirements.txt
27