<commit_before>FROM golang:1.11-alpine as builder
WORKDIR /go/src/github.com/moov-io/ach
RUN apk add -U make
COPY . .
RUN make build

FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /go/src/github.com/moov-io/ach/bin/ach /bin/ach
EXPOSE 8080
EXPOSE 9090
ENTRYPOINT ["/bin/ach"]<commit_msg>docker: run as moov -- an unprivileged user<commit_after>FROM golang:1.11-alpine as builder
WORKDIR /go/src/github.com/moov-io/ach
RUN apk add -U make
RUN adduser -D -g '' --shell /bin/false moov
USER moov
COPY . .
RUN make build

FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /go/src/github.com/moov-io/ach/bin/ach /bin/ach
COPY --from=builder /etc/passwd /etc/passwd
USER moov
EXPOSE 8080
EXPOSE 9090
ENTRYPOINT ["/bin/ach"]
{'fraction_non_alphanumeric': 0.1384083044982699, 'fraction_numerical': 0.025374855824682813, 'mean_word_length': 3.6666666666666665, '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': '3887527', 'n_tokens_mistral': 362, 'n_tokens_neox': 337, 'n_words': 82}