diff --git a/Dockerfile b/Dockerfile index 8d84d7e..61d01df 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ COPY go.sum . RUN go mod download COPY . . ARG VERSION=unknown -RUN CGO_ENABLED=1 go build -mod=readonly -ldflags "-extldflags='-Wl,-z,lazy' -X 'github.com/coroot/coroot-node-agent/flags.Version=${VERSION}'" -o coroot-node-agent . +RUN CGO_ENABLED=1 go build -mod=readonly -ldflags "-s -w -extldflags='-Wl,-z,lazy' -X 'github.com/coroot/coroot-node-agent/flags.Version=${VERSION}'" -o coroot-node-agent . FROM registry.access.redhat.com/ubi9/ubi