<commit_before>FROM golang:1.17.6-alpine3.15 as builder
RUN addgroup -S appgroup && adduser -S appuser -G appgroup -u 1000 \
  && apk add --update --no-cache ca-certificates tzdata
WORKDIR /app
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
RUN GOGC=off CGO_ENABLED=0 go build -v -o prometheus_bot

FROM scratch
COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/<commit_msg>remove --update from apk add<commit_after>FROM golang:1.17.6-alpine3.15 as builder
RUN addgroup -S appgroup && adduser -S appuser -G appgroup -u 1000 \
  && apk add --no-cache ca-certificates tzdata
WORKDIR /app
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
RUN GOGC=off CGO_ENABLED=0 go build -v -o prometheus_bot

FROM scratch
COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
{'fraction_non_alphanumeric': 0.11991434689507495, 'fraction_numerical': 0.02569593147751606, 'mean_word_length': 3.4523809523809526, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '161638', 'n_tokens_mistral': 367, 'n_tokens_neox': 342, 'n_words': 102}