<commit_before>FROM golang:alpine
WORKDIR /go/src/github.com/gotoolkit/miner
RUN apk add --no-cache git
COPY . /go/src/github.com/gotoolkit/miner
RUN go build -o miner .

FROM alpine:latest
RUN apk add --no-cache ca-certificates
COPY --from=0 /go/src/github.com/gotoolkit/miner/miner /usr/local/bin/miner
ENTRYPOINT ["miner"]
CMD ["-h"]<commit_msg>update Dockerfile<commit_after>FROM golang:alpine AS builder

RUN apk add --no-cache git curl

ENV DEP_VERSION 0.3.2
RUN curl -fsSL -o /usr/local/bin/dep https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 && chmod +x /usr/local/bin/dep

WORKDIR /go/src/github.com/gotoolkit/miner

COPY Gopkg.toml Gopkg.lock ./
RUN dep ensure -vendor-only

COPY . .

RUN go install .

FROM alpine:latest
RUN apk add --no-cache ca-certificates
COPY --from=builder /go/bin/miner /usr/local/bin/miner
ENTRYPOINT ["miner"]
CMD ["-h"]
{'fraction_non_alphanumeric': 0.14173228346456693, 'fraction_numerical': 0.006749156355455568, 'mean_word_length': 3.7593582887700534, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '280302', 'n_tokens_mistral': 357, 'n_tokens_neox': 340, 'n_words': 81}