We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d90c9df + 1865b1c commit 147741eCopy full SHA for 147741e
Dockerfile
@@ -3,13 +3,18 @@ FROM python:3-slim-bullseye
3
# We need to set the host to 0.0.0.0 to allow outside access
4
ENV HOST 0.0.0.0
5
6
-COPY . .
+WORKDIR /app
7
+
8
+COPY . /app
9
10
# Install the package
11
RUN apt update && apt install -y libopenblas-dev ninja-build build-essential
12
RUN python -m pip install --upgrade pip pytest cmake scikit-build setuptools fastapi uvicorn sse-starlette
13
14
RUN LLAMA_OPENBLAS=1 python3 setup.py develop
15
16
+# Setting a env variable MODEL
17
+ENV MODEL ggml.bin
18
19
# Run the server
-CMD python3 -m llama_cpp.server
20
+CMD python3 -m llama_cpp.server --model $[MODEL}
0 commit comments