<commit_before>FROM golang:1.7.1-alpine

ARG GOOS

COPY . /go/src/github.com/docker/swarm
WORKDIR /go/src/github.com/docker/swarm

RUN set -ex \
	&& apk add --no-cache --virtual .build-deps \
	git \
	&& GOOS=$GOOS CGO_ENABLED=0 go install -v -a -tags netgo -installsuffix netgo -ldflags '-w -X "github.com/docker/swarm/version.GITCOMMIT=`git rev-parse --short HEAD`" -X "github.com/docker/swarm/version.BUILDTIME=`date -u`"'  \
	&& apk del .build-deps

ENV SWARM_HOST :2375
EXPOSE 2375

VOLUME $HOME/.swarm

ENTRYPOINT ["swarm"]
CMD ["--help"]<commit_msg>add GOARCH to be able to build for other architectures<commit_after>FROM golang:1.7.1-alpine

ARG GOOS
ARG GOARCH

COPY . /go/src/github.com/docker/swarm
WORKDIR /go/src/github.com/docker/swarm

RUN set -ex \
	&& apk add --no-cache --virtual .build-deps \
	git \
	&& GOARCH=$GOARCH GOOS=$GOOS CGO_ENABLED=0 go install -v -a -tags netgo -installsuffix netgo -ldflags '-w -X "github.com/docker/swarm/version.GITCOMMIT=`git rev-parse --short HEAD`" -X "github.com/docker/swarm/version.BUILDTIME=`date -u`"'  \
	&& apk del .build-deps

ENV SWARM_HOST :2375
EXPOSE 2375

VOLUME $HOME/.swarm

ENTRYPOINT ["swarm"]
CMD ["--help"]
{'fraction_non_alphanumeric': 0.15632965165675447, 'fraction_numerical': 0.020390824129141887, 'mean_word_length': 3.4790874524714828, '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': '5159481', 'n_tokens_mistral': 501, 'n_tokens_neox': 475, 'n_words': 113}