fix: add ldflags for version, remove privileged, enable flash attention

This commit is contained in:
2026-05-10 10:07:25 -04:00
parent 9cc7edfb39
commit 6b82a26c25
2 changed files with 2 additions and 3 deletions

View File

@@ -74,7 +74,7 @@ RUN mkdir -p build-hip && \
# Step 3: Build Go binary (GCC for CGo linking)
ENV CGO_ENABLED=1
RUN go build -trimpath -o /build/dist/ollama .
RUN go build -trimpath -ldflags="-X=github.com/ollama/ollama/version.Version=${OLLAMA_VERSION}" -o /build/dist/ollama .
# ---------- Runtime image ----------
FROM ubuntu:24.04