Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
9abb6625
Commit
9abb6625
authored
Sep 30, 2023
by
Jeffrey Morgan
Browse files
docker: fix volume permission errors
parent
1d0ebe67
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
Dockerfile
Dockerfile
+2
-6
No files found.
Dockerfile
View file @
9abb6625
...
@@ -15,13 +15,9 @@ RUN /usr/local/go/bin/go generate ./... \
...
@@ -15,13 +15,9 @@ RUN /usr/local/go/bin/go generate ./... \
&&
/usr/local/go/bin/go build .
&&
/usr/local/go/bin/go build .
FROM
ubuntu:22.04
FROM
ubuntu:22.04
ENV
OLLAMA_HOST 0.0.0.0
RUN
apt-get update
&&
apt-get
install
-y
ca-certificates
RUN
apt-get update
&&
apt-get
install
-y
ca-certificates
RUN
groupadd ollama
&&
useradd
-m
-g
ollama ollama
COPY
--from=0 /go/src/github.com/jmorganca/ollama/ollama /bin/ollama
COPY
--from=0 /go/src/github.com/jmorganca/ollama/ollama /bin/ollama
EXPOSE
11434
USER
ollama:ollama
ENV
OLLAMA_HOST 0.0.0.0
ENTRYPOINT
["/bin/ollama"]
ENTRYPOINT
["/bin/ollama"]
CMD
["serve"]
CMD
["serve"]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment