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 147741e

Browse filesBrowse files
authored
Merge pull request #8 from th-neu/patch-1
chore: Update Dockerfile
2 parents d90c9df + 1865b1c commit 147741e
Copy full SHA for 147741e

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.