Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1865b1c

Browse filesBrowse files
authored
chore: Update Dockerfile
Setting workdir so image is a bit cleaner. Setting a model variable. Passing a model env variable to the run command.
1 parent 684d7c8 commit 1865b1c
Copy full SHA for 1865b1c

File tree

Expand file treeCollapse file tree

1 file changed

+7
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-2
lines changed

‎Dockerfile

Copy file name to clipboardExpand all lines: Dockerfile
+7-2Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@ FROM python:3-slim-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 . .
6+
WORKDIR /app
7+
8+
COPY . /app
79

810
# Install the package
911
RUN apt update && apt install -y libopenblas-dev ninja-build build-essential
1012
RUN python -m pip install --upgrade pip pytest cmake scikit-build setuptools fastapi uvicorn sse-starlette
1113

1214
RUN LLAMA_OPENBLAS=1 python3 setup.py develop
1315

16+
# Setting a env variable MODEL
17+
ENV MODEL ggml.bin
18+
1419
# Run the server
15-
CMD python3 -m llama_cpp.server
20+
CMD python3 -m llama_cpp.server --model $[MODEL}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.