<commit_before>FROM eu.gcr.io/kyma-project/test-infra/buildpack-golang-toolbox:v20190930-d28d219 as builder

ARG DOCK_PKG_DIR=/workspace/go/src/github.com/kyma-project/kyma/components/event-service

RUN mkdir -p $DOCK_PKG_DIR

COPY ./ ${DOCK_PKG_DIR}
COPY ./licenses/ /app/licenses

WORKDIR ${DOCK_PKG_DIR}/

RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o eventservice ./cmd/eventservice

FROM alpine:3.10
RUN apk update && apk add curl ngrep

LABEL source=<EMAIL>:kyma-project/kyma.git

COPY --from=builder /workspace/go/src/github.com/kyma-project/kyma/components/event-service/eventservice .
COPY --from=builder /app/licenses /app/licenses

CMD ["/eventservice"]
<commit_msg>Upgrade event-service Docker base image to `From scratch` (#7429)<commit_after>FROM eu.gcr.io/kyma-project/test-infra/buildpack-golang-toolbox:v20190930-d28d219 as builder

ARG DOCK_PKG_DIR=/workspace/go/src/github.com/kyma-project/kyma/components/event-service

RUN mkdir -p $DOCK_PKG_DIR

COPY ./ ${DOCK_PKG_DIR}
COPY ./licenses/ /app/licenses

WORKDIR ${DOCK_PKG_DIR}/

RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o eventservice ./cmd/eventservice

FROM scratch

LABEL source=<EMAIL>:kyma-project/kyma.git

COPY --from=builder /workspace/go/src/github.com/kyma-project/kyma/components/event-service/eventservice .
COPY --from=builder /app/licenses /app/licenses

CMD ["/eventservice"]

{'fraction_non_alphanumeric': 0.12866333095067906, 'fraction_numerical': 0.02501786990707648, 'mean_word_length': 4.714285714285714, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2473240', 'n_tokens_mistral': 556, 'n_tokens_neox': 522, 'n_words': 97}