nihardon commited on
Commit
47a34d9
·
verified ·
1 Parent(s): 58a5bfc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -10
Dockerfile CHANGED
@@ -1,18 +1,18 @@
1
  FROM python:3.10
2
 
3
- # Download the specific pre-compiled file manually
4
- RUN wget https://github.com/abetlen/llama-cpp-python/releases/download/v0.2.55/llama_cpp_python-0.2.55-cp310-cp310-linux_x86_64.whl
5
 
6
- # Install the file we just downloaded
7
- RUN pip install llama_cpp_python-0.2.55-cp310-cp310-linux_x86_64.whl
 
 
8
 
9
- # Install the rest
10
- RUN pip install huggingface_hub gradio
 
 
11
 
12
- # Cleanup
13
- RUN rm llama_cpp_python-0.2.55-cp310-cp310-linux_x86_64.whl
14
-
15
- # App Setup
16
  WORKDIR /app
17
  COPY . .
18
  CMD ["python", "app.py"]
 
1
  FROM python:3.10
2
 
3
+ RUN pip install --upgrade pip
 
4
 
5
+ # Install the pre-built wheel
6
+ RUN pip install --no-cache-dir \
7
+ llama-cpp-python \
8
+ --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
9
 
10
+ # Install other dependencies
11
+ RUN pip install --no-cache-dir \
12
+ huggingface_hub \
13
+ gradio
14
 
15
+ # Copy and Run
 
 
 
16
  WORKDIR /app
17
  COPY . .
18
  CMD ["python", "app.py"]