Skip to content

Commit

Permalink
Merge pull request #28 from patoarvizu/fix-CVE-2020-28928
Browse files Browse the repository at this point in the history
  • Loading branch information
patoarvizu authored Nov 21, 2020
2 parents 67416cd + 08fc85e commit ae758bd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ WORKDIR /go/src/github.com/patoarvizu/vault-agent-auto-inject-webhook/

RUN CGO_ENABLED=0 GOOS=linux GOARM=$(if [ "$TARGETVARIANT" = "v7" ]; then echo "7"; fi) GOARCH=$TARGETARCH go build -o /vault-agent-auto-inject-webhook /go/src/github.com/patoarvizu/vault-agent-auto-inject-webhook/cmd/webhook.go

FROM alpine:3.12.0
FROM gcr.io/distroless/static:nonroot-amd64

ARG GIT_COMMIT="unspecified"
LABEL GIT_COMMIT=$GIT_COMMIT
Expand All @@ -25,8 +25,6 @@ LABEL AUTHOR_EMAIL=$AUTHOR_EMAIL
ARG SIGNATURE_KEY="undefined"
LABEL SIGNATURE_KEY=$SIGNATURE_KEY

RUN apk update && apk add ca-certificates

COPY --from=builder /vault-agent-auto-inject-webhook /

CMD /vault-agent-auto-inject-webhook

0 comments on commit ae758bd

Please sign in to comment.