8000 Update simple Docker · abetlen/llama-cpp-python@68ac59b · GitHub
[go: up one dir, main page]

Skip to content

Commit 68ac59b

Browse files
author
omer.yentur
committed
Update simple Docker
1 parent 5212fb0 commit 68ac59b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

docker/simple/Dockerfile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,21 @@ RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-reco
1313
python3-pip \
1414
ninja-build \
1515
libopenblas-dev \
16-
build-essential
16+
build-essential \
17+
&& apt-get clean \
18+
&& rm -rf /var/lib/apt/lists/*
19+
20+
1721

1822
RUN mkdir /app
1923
WORKDIR /app
2024
COPY . /app
2125

2226
RUN python3 -m pip install --upgrade pip
2327

24-
RUN make deps && make build && make clean
28+
RUN python3 -m pip install --upgrade pip pytest cmake scikit-build setuptools fastapi uvicorn sse-starlette pydantic-settings starlette-context
29+
30+
RUN pip install llama-cpp-python --verbose;
2531

2632
# Set environment variable for the host
2733
ENV HOST=0.0.0.0
@@ -31,4 +37,4 @@ ENV PORT=8000
3137
EXPOSE 8000
3238

3339
# Run the server start script
34-
CMD ["/bin/sh", "/app/docker/simple/run.sh"]
40+
CMD ["/bin/sh", "/app/run.sh"]

0 commit comments

Comments
 (0)
0