CyberCoder225 commited on
Commit
8ed0d44
·
verified ·
1 Parent(s): 1036e55

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
  FROM python:3.10-slim
2
 
3
- # System setup
4
  RUN apt-get update && apt-get install -y \
5
  build-essential \
6
  python3-dev \
@@ -12,11 +12,13 @@ ENV HOME=/home/user \
12
  PATH=/home/user/.local/bin:$PATH
13
  WORKDIR $HOME/app
14
 
15
- # THIS IS THE KEY: It installs the pre-made version instantly
 
16
  RUN pip install --no-cache-dir \
17
  huggingface-hub \
18
  flask \
19
- llama-cpp-python --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
 
20
 
21
  COPY --chown=user . $HOME/app
22
 
 
1
  FROM python:3.10-slim
2
 
3
+ # Install system essentials
4
  RUN apt-get update && apt-get install -y \
5
  build-essential \
6
  python3-dev \
 
12
  PATH=/home/user/.local/bin:$PATH
13
  WORKDIR $HOME/app
14
 
15
+ # FORCE the pre-built wheel for CPU
16
+ # We use version 0.2.90 because it's stable and has broad wheel support
17
  RUN pip install --no-cache-dir \
18
  huggingface-hub \
19
  flask \
20
+ --prefer-binary \
21
+ llama-cpp-python==0.2.90 --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
22
 
23
  COPY --chown=user . $HOME/app
24