<commit_before>FROM golang:1.9.0-alpine3.6 as builder
WORKDIR /go/src/github.com/korchasa/voyeur
COPY . .
RUN apk add --no-cache git
RUN go get -u github.com/golang/dep/cmd/dep
RUN dep ensure
RUN go test
RUN CGO_ENABLED=0 GOOS=linux go build -o ./voyeur

FROM busybox:1.27.2
COPY --from=builder /go/src/github.com/korchasa/voyeur/voyeur /voyeur
COPY --from=builder /go/src/github.com/korchasa/voyeur/static /static
RUN chmod a+x /voyeur
EXPOSE 80
CMD ["/voyeur", "-l", ":80"]<commit_msg>docker: try to use hub arguments<commit_after>FROM golang:1.9.0-alpine3.6 as builder
WORKDIR /go/src/github.com/korchasa/voyeur
COPY . .
RUN apk add --no-cache git
RUN go get -u github.com/golang/dep/cmd/dep
RUN dep ensure
RUN go test
RUN CGO_ENABLED=0 GOOS=linux go build -o ./voyeur

FROM busybox:1.27.2
COPY --from=builder /go/src/github.com/korchasa/voyeur/voyeur /voyeur
COPY --from=builder /go/src/github.com/korchasa/voyeur/static /static
ARG BUILD_DATE
ARG GIT_SHA1
LABEL org.label-schema.build-date=$BUILD_DATE \
    org.label-schema.name="voyeur" \
    org.label-schema.description="Monitor HTTP requests between docker containers without pain" \
    org.label-schema.vcs-ref=$GIT_SHA1 \
    org.label-schema.vcs-url="http://github.com/korchasa/voyeur" \
    org.label-schema.schema-version="1.0"
RUN chmod a+x /voyeur
EXPOSE 80
CMD ["/voyeur", "-l", ":80"]
{'fraction_non_alphanumeric': 0.1410635155096012, 'fraction_numerical': 0.023633677991137372, 'mean_word_length': 3.7711267605633805, 'pattern_counts': {'":': 2, '<': 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': '2386787', 'n_tokens_mistral': 556, 'n_tokens_neox': 543, 'n_words': 122}