Disable VCS stamping
This commit is contained in:
parent
b6aeb52e3f
commit
0cf46eb9f1
@ -5,7 +5,7 @@ RUN go mod download
|
|||||||
COPY . .
|
COPY . .
|
||||||
ARG GIT_COMMIT=unknown
|
ARG GIT_COMMIT=unknown
|
||||||
ENV CGO_ENABLED=0
|
ENV CGO_ENABLED=0
|
||||||
RUN go build -trimpath -ldflags "-s -w -X main.commit=${GIT_COMMIT}" -o /tmp/demo-secure .
|
RUN go build -trimpath -buildvcs=false -ldflags "-s -w -X main.commit=${GIT_COMMIT}" -o /tmp/demo-secure .
|
||||||
|
|
||||||
FROM registry.access.redhat.com/ubi9-minimal:latest
|
FROM registry.access.redhat.com/ubi9-minimal:latest
|
||||||
LABEL org.opencontainers.image.title="demo-secure" \
|
LABEL org.opencontainers.image.title="demo-secure" \
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user