fugthchat commited on
Commit
c96e16b
·
verified ·
1 Parent(s): d4a2d53

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -4
Dockerfile CHANGED
@@ -20,9 +20,8 @@ COPY ./requirements.txt /app/requirements.txt
20
  RUN pip install --no-cache-dir --upgrade pip
21
 
22
  # --- THIS IS THE FIX ---
23
- # We tell pip to look at a special URL to find pre-compiled
24
- # CPU-only versions of llama-cpp-python.
25
- # This avoids compiling from source, fixing the timeout.
26
  RUN pip install --no-cache-dir -r /app/requirements.txt \
27
  --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
28
 
@@ -34,4 +33,4 @@ EXPOSE 7860
34
 
35
  # Command to run the application
36
  # This starts app.py, which will THEN download the model on startup.
37
- CMD ["python", "app.py"]
 
20
  RUN pip install --no-cache-dir --upgrade pip
21
 
22
  # --- THIS IS THE FIX ---
23
+ # It will now look for version 0.2.80 (from requirements.txt)
24
+ # in the special URL and find the pre-compiled file.
 
25
  RUN pip install --no-cache-dir -r /app/requirements.txt \
26
  --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
27
 
 
33
 
34
  # Command to run the application
35
  # This starts app.py, which will THEN download the model on startup.
36
+ CMD ["python", "app.py"]