<commit_before>FROM golang:1.14 as build-env
ENV GO111MODULE=on \
    CGO_ENABLED=0 \
    GOOS=linux \
    GOARCH=amd64

WORKDIR /tmp/secrets-store-csi-driver-provider-gcp
COPY . ./
RUN go get -t ./...
RUN make licensessave
RUN go install \
    -trimpath \
    -ldflags "-extldflags '-static'" \
    github.com/GoogleCloudPlatform/secrets-store-csi-driver-provider-gcp

FROM gcr.io/distroless/base
COPY --from=build-env /tmp/secrets-store-csi-driver-provider-gcp/licenses /licenses
COPY --from=build-env /go/bin/secrets-store-csi-driver-provider-gcp /bin/
ENTRYPOINT ["/bin/secrets-store-csi-driver-provider-gcp", "-daemonset"]<commit_msg>Dockerfile: use smaller static image (#23)<commit_after>FROM golang:1.14 as build-env
ENV GO111MODULE=on \
    CGO_ENABLED=0 \
    GOOS=linux \
    GOARCH=amd64

WORKDIR /tmp/secrets-store-csi-driver-provider-gcp
COPY . ./
RUN go get -t ./...
RUN make licensessave
RUN go install \
    -trimpath \
    -ldflags "-s -w -extldflags '-static'" \
    github.com/GoogleCloudPlatform/secrets-store-csi-driver-provider-gcp

FROM gcr.io/distroless/static-debian10
COPY --from=build-env /tmp/secrets-store-csi-driver-provider-gcp/licenses /licenses
COPY --from=build-env /go/bin/secrets-store-csi-driver-provider-gcp /bin/
ENTRYPOINT ["/bin/secrets-store-csi-driver-provider-gcp", "-daemonset"]
{'fraction_non_alphanumeric': 0.14577039274924472, 'fraction_numerical': 0.01661631419939577, 'mean_word_length': 3.372937293729373, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4454353', 'n_tokens_mistral': 522, 'n_tokens_neox': 494, 'n_words': 86}