Unverified Commit 5271ff85 authored by Daniel Hiltgen's avatar Daniel Hiltgen Committed by GitHub
Browse files

handle cgo flags in docker build (#11909)

Docker build requires build-args to be defined.  This ensures the release.yaml settings will be used.
parent d6f7233a
......@@ -86,6 +86,8 @@ RUN go mod download
COPY . .
ARG GOFLAGS="'-ldflags=-w -s'"
ENV CGO_ENABLED=1
ARG CGO_CFLAGS
ARG CGO_CXXFLAGS
RUN --mount=type=cache,target=/root/.cache/go-build \
go build -trimpath -buildmode=pie -o /bin/ollama .
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment