<commit_before>FROM golang:1.14-alpine as builder
RUN apk add --update curl ca-certificates make git gcc g++ python
# Enable go modules
ENV GO111MODULE=on
# enable go proxy for faster builds
ENV GOPROXY=https://proxy.golang.org
COPY . /go/src/github.com/segmentio/ecs-logs
WORKDIR $GOPATH/src/github.com/segmentio/ecs-logs
COPY . $GOPATH/src/github.com/segmentio/ecs-logs
# this is an auto-generated build command
# based upon the first argument of the entrypoint in the existing dockerfile.  
# This will work in most cases, but it is important to note
# that in some situations you may need to define a different build output with the -o flag
# This comment may be safely removed
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -ldflags '-w -s -extldflags "-static"' -o /ecs-logs
FROM 528451384384.dkr.ecr.us-west-2.amazonaws.com/segment-scratch
COPY --from=builder ecs-logs ecs-logs
ENTRYPOINT ["ecs-logs"]
<commit_msg>fix scratch image<commit_after>FROM golang:1.14-alpine as builder
RUN apk add --update curl ca-certificates make git gcc g++ python
# Enable go modules
ENV GO111MODULE=on
# enable go proxy for faster builds
ENV GOPROXY=https://proxy.golang.org
COPY . /go/src/github.com/segmentio/ecs-logs
WORKDIR $GOPATH/src/github.com/segmentio/ecs-logs
COPY . $GOPATH/src/github.com/segmentio/ecs-logs
# this is an auto-generated build command
# based upon the first argument of the entrypoint in the existing dockerfile.  
# This will work in most cases, but it is important to note
# that in some situations you may need to define a different build output with the -o flag
# This comment may be safely removed
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -ldflags '-w -s -extldflags "-static"' -o /ecs-logs
FROM scratch
COPY --from=builder ecs-logs ecs-logs
ENTRYPOINT ["ecs-logs"]

{'fraction_non_alphanumeric': 0.09051490514905149, 'fraction_numerical': 0.016802168021680216, 'mean_word_length': 4.244318181818182, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '588335', 'n_tokens_mistral': 620, 'n_tokens_neox': 588, 'n_words': 224}