ishka2009 commited on
Commit
9959b70
·
verified ·
1 Parent(s): d155caa

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -7
Dockerfile CHANGED
@@ -2,18 +2,12 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
- # Install build dependencies temporarily
6
- RUN apt-get update && apt-get install -y \
7
- build-essential \
8
- cmake \
9
- && rm -rf /var/lib/apt/lists/*
10
-
11
  # Copy and install Python dependencies
12
  COPY requirements.txt .
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
  # Build and install llama-cpp-python from source (CPU-only)
16
- RUN pip install --no-cache-dir llama-cpp-python
17
 
18
  # Copy application file
19
  COPY app.py .
 
2
 
3
  WORKDIR /app
4
 
 
 
 
 
 
 
5
  # Copy and install Python dependencies
6
  COPY requirements.txt .
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
9
  # Build and install llama-cpp-python from source (CPU-only)
10
+ RUN pip install llama-cpp-python --only-binary=:all: --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
11
 
12
  # Copy application file
13
  COPY app.py .