Fdgg55 commited on
Commit
e4a1931
·
verified ·
1 Parent(s): df18018

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -4
Dockerfile CHANGED
@@ -2,14 +2,13 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /code
4
 
5
- # Put the compiler back just in case!
6
  RUN apt-get update && apt-get install -y build-essential gcc g++ cmake && rm -rf /var/lib/apt/lists/*
7
 
8
  COPY ./requirements.txt /code/requirements.txt
9
 
10
- # Install with the CPU wheel URL
11
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt \
12
- --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
13
 
14
  COPY . .
15
 
 
2
 
3
  WORKDIR /code
4
 
5
+ # Install the correct Debian compilers AND cmake so it builds fast
6
  RUN apt-get update && apt-get install -y build-essential gcc g++ cmake && rm -rf /var/lib/apt/lists/*
7
 
8
  COPY ./requirements.txt /code/requirements.txt
9
 
10
+ # Notice I removed the extra-index-url so it builds cleanly for Debian!
11
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
12
 
13
  COPY . .
14