<commit_before>FROM golang:1.6

EXPOSE 9110

RUN go get github.com/mesosphere/mesos-exporter

ENTRYPOINT [ "/go/bin/mesos-exporter" ]<commit_msg>Move to lightweight Docker image<commit_after>FROM alpine:3.4

EXPOSE 9110

RUN addgroup exporter \
 && adduser -S -G exporter exporter

COPY . /go/src/github.com/mesosphere/mesos_exporter

RUN apk --update add ca-certificates \
 && apk --update add --virtual build-deps go git \
 && cd /go/src/github.com/mesosphere/mesos_exporter \
 && GOPATH=/go go get \
 && GOPATH=/go go build -o /bin/mesos-exporter \
 && apk del --purge build-deps \
 && rm -rf /go/bin /go/pkg /var/cache/apk/*

USER exporter

ENTRYPOINT [ "/bin/mesos-exporter" ]
{'fraction_non_alphanumeric': 0.13803230543318648, 'fraction_numerical': 0.01762114537444934, 'mean_word_length': 3.3164556962025316, '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': '6733356', 'n_tokens_mistral': 272, 'n_tokens_neox': 252, 'n_words': 63}