fix: remove nonexistent CC=clang for Go build step

ROCm 6.1 image doesn't have clang/clang++ in PATH (only amdclang++).
GCC is the default and works fine for CGo linking.
This commit is contained in:
2026-05-09 22:41:18 -04:00
parent aa6bbe87bf
commit f6bc2b07a7

View File

@@ -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 ----------