<commit_before>FROM golang:1.8-alpine

ENV BUILD_PACKAGES="build-base git"

WORKDIR /go/src/github.com/Comcast/eel
COPY . ./

RUN apk update && \
    apk upgrade && \
    apk add $BUILD_PACKAGES && \
    go get -u github.com/Comcast/eel && \
    cd test && go test -v && cd .. && \
    go build -o bin/eel

EXPOSE 8080
CMD ./bin/dockereel.sh
<commit_msg>Make smaller runtime image by using multi-stage build<commit_after>FROM golang:1.8-alpine AS builder

ENV BUILD_PACKAGES="build-base git"

WORKDIR /go/src/github.com/Comcast/eel
COPY . ./

RUN apk update && \
    apk upgrade && \
    apk add $BUILD_PACKAGES && \
    go get -u github.com/Comcast/eel && \
    cd test && go test -v && cd .. && \
    go build -o bin/eel


FROM alpine:latest
RUN apk --no-cache add ca-certificates tzdata curl

WORKDIR /go/src/github.com/Comcast/eel
COPY --from=builder /go/src/github.com/Comcast/eel/bin ./bin
COPY --from=builder /go/src/github.com/Comcast/eel/config-eel ./config-eel
COPY --from=builder /go/src/github.com/Comcast/eel/config-handlers ./config-handlers
COPY --from=builder /go/src/github.com/Comcast/eel/test/data ./test/data

EXPOSE 8080

CMD ./bin/dockereel.sh
{'fraction_non_alphanumeric': 0.1459227467811159, 'fraction_numerical': 0.010300429184549357, 'mean_word_length': 2.798045602605863, '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': '2785665', 'n_tokens_mistral': 468, 'n_tokens_neox': 440, 'n_words': 104}