8000 Install from local directory · Stonelinks/llama-cpp-python@81631af · GitHub
[go: up one dir, main page]

Skip to content

Commit 81631af

Browse files
committed
Install from local directory
1 parent d605408 commit 81631af

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@ FROM python:3-bullseye
33
# We need to set the host to 0.0.0.0 to allow outside access
44
ENV HOST 0.0.0.0
55

6+
COPY . .
7+
68
# Install the package
7-
RUN apt update && apt install -y libopenblas-dev && LLAMA_OPENBLAS=1 pip install llama-cpp-python[server]
9+
RUN apt update && apt install -y libopenblas-dev
10+
RUN python -m pip install --upgrade pip pytest cmake scikit 4D57 -build setuptools fastapi uvicorn sse-starlette
11+
12+
RUN LLAMA_OPENBLAS=1 python3 setup.py develop
813

914
# Run the server
1015
CMD python3 -m llama_cpp.server

0 commit comments

Comments
 (0)
0