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
6292f4b6
Commit
6292f4b6
authored
Jul 03, 2023
by
Jeffrey Morgan
Browse files
update `Dockerfile`
parent
02401653
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
5 deletions
+23
-5
.dockerignore
.dockerignore
+7
-0
Dockerfile
Dockerfile
+16
-5
No files found.
.dockerignore
0 → 100644
View file @
6292f4b6
build
llama/build
.venv
.vscode
ollama
app
web
\ No newline at end of file
Dockerfile
View file @
6292f4b6
FROM
python:3-slim-bullseye
RUN
apt-get update
&&
apt-get
install
-y
build-essential gcc ninja-build libopenblas-dev
RUN
python
-m
pip
install
--upgrade
pip setuptools
RUN
CMAKE_ARGS
=
"-DLLAMA_OPENBLAS=on"
FORCE_CMAKE
=
1 pip
install
ollama
ENTRYPOINT
["ollama"]
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
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
ARG
USER=ollama
ARG
GROUP=ollama
RUN
addgroup
-g
1000
$GROUP
&&
adduser
-u
1000
-DG
$GROUP
$USER
USER
$USER:$GROUP
ENTRYPOINT
["/bin/ollama"]
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