ishka2009 commited on
Commit
69e569a
·
verified ·
1 Parent(s): da288df

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -2,7 +2,7 @@ FROM python:3.11
2
 
3
  WORKDIR /app
4
 
5
- # Install only the essentials for building llama-cpp-python
6
  RUN apt-get update && apt-get install -y \
7
  build-essential \
8
  cmake \
@@ -11,10 +11,10 @@ RUN apt-get update && apt-get install -y \
11
 
12
  # Copy and install Python dependencies
13
  COPY requirements.txt .
14
- RUN pip install --no-cache-dir -r requirements.txt
15
 
16
- # Build llama-cpp-python from source (CPU-only, no BLAS/OpenMP)
17
- RUN pip install --no-cache-dir llama-cpp-python
18
 
19
  # Copy application file
20
  COPY app.py .
 
2
 
3
  WORKDIR /app
4
 
5
+ # Essentials for building llama-cpp-python
6
  RUN apt-get update && apt-get install -y \
7
  build-essential \
8
  cmake \
 
11
 
12
  # Copy and install Python dependencies
13
  COPY requirements.txt .
14
+ RUN pip install -r requirements.txt
15
 
16
+ # Build llama-cpp-python from source (CPU-only)
17
+ RUN pip install llama-cpp-python
18
 
19
  # Copy application file
20
  COPY app.py .