diff --git a/ai/ollama/Dockerfile b/ai/ollama/Dockerfile index 172af7c..4fac4f8 100644 --- a/ai/ollama/Dockerfile +++ b/ai/ollama/Dockerfile @@ -52,10 +52,8 @@ RUN mkdir -p build && cd build && \ cmake --build . -- -l $(nproc) && \ cmake --install . --component HIP --strip --prefix /build/dist -# Build the Go binary +# Build the Go binary (use GCC for CGo linking) ENV CGO_ENABLED=1 -ENV CC=clang -ENV CXX=clang++ RUN go build -trimpath -o /build/dist/ollama . # ---------- Runtime image ----------