AnatoliiG commited on
Commit
afe2a94
·
1 Parent(s): 8825fec

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -4
Dockerfile CHANGED
@@ -1,10 +1,8 @@
1
  FROM python:3.10-slim-bookworm
2
 
3
  RUN apt-get update && apt-get install -y --no-install-recommends \
4
- build-essential \
5
- cmake \
6
- gcc \
7
- g++ \
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
  RUN useradd -m -u 1000 user
@@ -16,6 +14,11 @@ ENV HOME=/home/user \
16
  WORKDIR /app
17
 
18
  RUN pip install --no-cache-dir --upgrade pip
 
 
 
 
 
19
  COPY --chown=user requirements.txt .
20
  RUN pip install --no-cache-dir -r requirements.txt
21
 
 
1
  FROM python:3.10-slim-bookworm
2
 
3
  RUN apt-get update && apt-get install -y --no-install-recommends \
4
+ libopenblas0 \
5
+ libgomp1 \
 
 
6
  && rm -rf /var/lib/apt/lists/*
7
 
8
  RUN useradd -m -u 1000 user
 
14
  WORKDIR /app
15
 
16
  RUN pip install --no-cache-dir --upgrade pip
17
+
18
+ COPY --chown=user build /app/build
19
+
20
+ RUN pip install --force-reinstall /app/build/llama_cpp_python-*.whl
21
+
22
  COPY --chown=user requirements.txt .
23
  RUN pip install --no-cache-dir -r requirements.txt
24