viskav commited on
Commit
ebff06e
·
verified ·
1 Parent(s): aa7dcd9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -0
Dockerfile CHANGED
@@ -1,10 +1,19 @@
1
  FROM python:3.11-slim
2
 
 
 
 
 
 
 
 
3
  WORKDIR /app
4
 
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
 
8
  COPY app.py .
9
 
10
  EXPOSE 7860
 
1
  FROM python:3.11-slim
2
 
3
+ # Install system dependencies needed for llama-cpp-python
4
+ RUN apt-get update && apt-get install -y --no-install-recommends \
5
+ build-essential \
6
+ cmake \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ # Workdir
10
  WORKDIR /app
11
 
12
+ # Install Python deps
13
  COPY requirements.txt .
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
16
+ # Copy app
17
  COPY app.py .
18
 
19
  EXPOSE 7860