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
36d111e7
Unverified
Commit
36d111e7
authored
Dec 11, 2024
by
Daniel Hiltgen
Committed by
GitHub
Dec 11, 2024
Browse files
ci: fix linux version (#8054)
Pass through the version override so the makefiles use it
parent
9039c821
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Dockerfile
Dockerfile
+4
-0
No files found.
Dockerfile
View file @
36d111e7
...
...
@@ -66,6 +66,7 @@ COPY . .
ARG
OLLAMA_SKIP_CUDA_GENERATE
ARG
OLLAMA_SKIP_ROCM_GENERATE
ARG
OLLAMA_FAST_BUILD
ARG
VERSION
RUN
--mount
=
type
=
cache,target
=
/root/.ccache
\
if
grep
"^flags"
/proc/cpuinfo|grep avx>/dev/null
;
then
\
make
-j
$(
expr
$(
nproc
)
/ 2
)
dist
;
\
...
...
@@ -91,6 +92,7 @@ WORKDIR /go/src/github.com/ollama/ollama/
COPY
. .
ARG
CGO_CFLAGS
ENV
GOARCH arm64
ARG
VERSION
RUN
--mount
=
type
=
cache,target
=
/root/.ccache
\
make
-j
5 dist_cuda_v11
\
CUDA_ARCHITECTURES
=
"72;87"
\
...
...
@@ -109,6 +111,7 @@ WORKDIR /go/src/github.com/ollama/ollama/
COPY
. .
ARG
CGO_CFLAGS
ENV
GOARCH arm64
ARG
VERSION
RUN
--mount
=
type
=
cache,target
=
/root/.ccache
\
make
-j
5 dist_cuda_v12
\
CUDA_ARCHITECTURES
=
"87"
\
...
...
@@ -120,6 +123,7 @@ FROM --platform=linux/arm64 unified-builder-arm64 AS build-arm64
COPY
. .
ARG
OLLAMA_SKIP_CUDA_GENERATE
ARG
OLLAMA_FAST_BUILD
ARG
VERSION
RUN
--mount
=
type
=
cache,target
=
/root/.ccache
\
make
-j
5 dist
COPY
--from=runners-jetpack5-arm64 /go/src/github.com/ollama/ollama/dist/ dist/
...
...
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