mirror of
https://github.com/ollama/ollama.git
synced 2025-03-29 11:11:47 +01:00
Add CUSTOM_CPU_FLAGS to Dockerfile. (#8284)
* Add CUSTOM_CPU_FLAGS. * fix golangci-lint error. --------- Co-authored-by: Richard Lyons <rick@frob.com.au>
This commit is contained in:
parent
3919f4ba3d
commit
cdf3a181dc
@ -67,6 +67,7 @@ ARG OLLAMA_SKIP_CUDA_GENERATE
|
||||
ARG OLLAMA_SKIP_ROCM_GENERATE
|
||||
ARG OLLAMA_FAST_BUILD
|
||||
ARG VERSION
|
||||
ARG CUSTOM_CPU_FLAGS
|
||||
RUN --mount=type=cache,target=/root/.ccache \
|
||||
if grep "^flags" /proc/cpuinfo|grep avx>/dev/null; then \
|
||||
make -j $(nproc) dist ; \
|
||||
|
Loading…
x
Reference in New Issue
Block a user