<commit_before>FROM golang:latest

WORKDIR /go/src/github.com/Jeffail/benthos/
COPY . /go/src/github.com/Jeffail/benthos/

RUN CGO_ENABLED=0 GOOS=linux make

# RUN apt-get update
# RUN apt-get install -y upx-ucl
# RUN CGO_ENABLED=0 GOOS=linux make LD_FLAGS="-s -w"
# RUN upx ./target/bin/benthos

FROM scratch

LABEL maintainer="<NAME> <<EMAIL>>"

WORKDIR /root/
COPY --from=0 /go/src/github.com/Jeffail/benthos/target/bin/benthos .
COPY ./config/env/default.yaml /benthos.yaml

EXPOSE 4195

ENTRYPOINT ["./benthos", "-c", "/benthos.yaml"]<commit_msg>Use alpine with ca-certificates for docker image<commit_after>FROM golang:latest

WORKDIR /go/src/github.com/Jeffail/benthos/
COPY . /go/src/github.com/Jeffail/benthos/

RUN CGO_ENABLED=0 GOOS=linux make

FROM alpine:latest

LABEL maintainer="<NAME> <<EMAIL>>"

WORKDIR /root/

RUN apk --update upgrade
RUN apk add ca-certificates
RUN update-ca-certificates

COPY --from=0 /go/src/github.com/Jeffail/benthos/target/bin/benthos .
COPY ./config/env/default.yaml /benthos.yaml

EXPOSE 4195

ENTRYPOINT ["./benthos", "-c", "/benthos.yaml"]
{'fraction_non_alphanumeric': 0.14732965009208104, 'fraction_numerical': 0.011970534069981584, 'mean_word_length': 4.103286384976526, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2199860', 'n_tokens_mistral': 451, 'n_tokens_neox': 431, 'n_words': 90}