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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -8
Dockerfile CHANGED
@@ -1,8 +1,10 @@
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,15 +16,10 @@ ENV HOME=/home/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 /app/build/llama_cpp_python-*.whl
21
-
22
  COPY --chown=user requirements.txt .
23
  RUN pip install --no-cache-dir -r requirements.txt
24
 
25
- COPY --chown=user app.py .
26
 
27
  EXPOSE 7860
28
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
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
  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
 
22
+ COPY --chown=user . .
23
 
24
  EXPOSE 7860
25
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]