st192011 commited on
Commit
70a01e8
·
verified ·
1 Parent(s): 0b1da4b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -10
Dockerfile CHANGED
@@ -8,24 +8,23 @@ ENV HOME=/home/user \
8
 
9
  FROM python:3.10-slim
10
 
11
- # 1. System dependencies
12
 
13
- RUN apt-get update && apt-get install -y
14
- git
15
- build-essential
16
- cmake
17
- && rm -rf /var/lib/apt/lists/*
 
18
 
19
  # 2. Install llama-cpp-python with CPU-only flags
20
-
21
  ENV CMAKE_ARGS="-DLLAMA_NATIVE=OFF"
22
  ENV FORCE_CMAKE=1
23
 
24
- RUN pip install --no-cache-dir
25
- llama-cpp-python==0.2.90
26
 
27
  # 3. App setup
28
-
29
  WORKDIR /app
30
 
31
  COPY requirements.txt .
@@ -35,3 +34,4 @@ COPY . .
35
 
36
  CMD ["python", "app.py"]
37
 
 
 
8
 
9
  FROM python:3.10-slim
10
 
11
+ FROM python:3.10-slim
12
 
13
+ # 1. System dependencies
14
+ RUN apt-get update && apt-get install -y \
15
+ git \
16
+ build-essential \
17
+ cmake \
18
+ && rm -rf /var/lib/apt/lists/*
19
 
20
  # 2. Install llama-cpp-python with CPU-only flags
 
21
  ENV CMAKE_ARGS="-DLLAMA_NATIVE=OFF"
22
  ENV FORCE_CMAKE=1
23
 
24
+ RUN pip install --no-cache-dir \
25
+ llama-cpp-python==0.2.90
26
 
27
  # 3. App setup
 
28
  WORKDIR /app
29
 
30
  COPY requirements.txt .
 
34
 
35
  CMD ["python", "app.py"]
36
 
37
+