From b8c1b13687fad787d9e2a5f7c397c7f0d73d00ec Mon Sep 17 00:00:00 2001 From: Kevin Wiesmueller Date: Tue, 14 Mar 2023 20:36:07 +0000 Subject: [PATCH] remove deprecated govendor license generation --- prometheus-to-sd/Dockerfile | 5 ----- 1 file changed, 5 deletions(-) diff --git a/prometheus-to-sd/Dockerfile b/prometheus-to-sd/Dockerfile index 0ce332130..5a483821d 100644 --- a/prometheus-to-sd/Dockerfile +++ b/prometheus-to-sd/Dockerfile @@ -20,12 +20,7 @@ ARG TARGETARCH ARG TARGETOS RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -mod=vendor -o /monitor -RUN apk update \ - && apk add --no-cache govendor \ - && govendor license +vendor > /NOTICES - FROM --platform=$TARGETPLATFORM gcr.io/distroless/static:latest # nobody:nobody USER 65534:65534 COPY --from=builder /monitor / -COPY --from=builder /NOTICES /