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
fdb93ef2
Commit
fdb93ef2
authored
Jul 06, 2023
by
Jeffrey Morgan
Browse files
fix dockerfile
parent
97ab3709
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Dockerfile
Dockerfile
+3
-3
No files found.
Dockerfile
View file @
fdb93ef2
...
...
@@ -2,15 +2,15 @@ FROM golang:1.20
RUN
apt-get update
&&
apt-get
install
-y
cmake
WORKDIR
/go/src/github.com/jmorganca/ollama
COPY
. .
RUN
go generate ./...
RUN
cmake
-S
llama
-B
llama/build
&&
cmake
--build
llama/build
RUN
CGO_ENABLED
=
1 go build
-ldflags
'-linkmode external -extldflags "-static"'
.
FROM
alpine
COPY
--from=0 /go/src/github.com/jmorganca/ollama/ollama /bin/ollama
EXPOSE
80
EXPOSE
443
EXPOSE
11434
ARG
USER=ollama
ARG
GROUP=ollama
RUN
addgroup
-g
1000
$GROUP
&&
adduser
-u
1000
-DG
$GROUP
$USER
USER
$USER:$GROUP
ENTRYPOINT
["/bin/ollama"]
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