<commit_before># =============================
FROM golang:1.8-alpine as build
# =============================
RUN apk --no-cache add git build-base

# go
RUN go get github.com/LK4D4/vndr
ENV PKG github.com/appcelerator/amp/cluster/ampadmin
ENV DIR /go/src/${PKG}
COPY . ${DIR}
WORKDIR ${DIR}
RUN vndr

# test
RUN go test -v -timeout 30m

# build
RUN go build -o /tmp/ampadmin ${PKG}

# =============================
FROM alpine
# =============================
RUN apk add --no-cache ca-certificates
COPY --from=build /tmp/ampadmin /usr/local/bin/ampadmin
ENTRYPOINT [ "ampadmin" ]
<commit_msg>update Dockerfile build package for ampadmin<commit_after># =============================
FROM golang:1.8-alpine as build
# =============================
RUN apk --no-cache add git build-base

# go
RUN go get github.com/LK4D4/vndr
ENV PKG github.com/appcelerator/amp/cluster/ampadmin
ENV DIR /go/src/${PKG}
COPY . ${DIR}
WORKDIR ${DIR}
RUN vndr

# test
RUN go test -v -timeout 30m

# build
RUN go build -o /tmp/ampadmin ${PKG}/cmd

# =============================
FROM alpine
# =============================
RUN apk add --no-cache ca-certificates
COPY --from=build /tmp/ampadmin /usr/local/bin/ampadmin
ENTRYPOINT [ "ampadmin" ]

{'fraction_non_alphanumeric': 0.29354047424366314, 'fraction_numerical': 0.009811937857726901, 'mean_word_length': 4.538461538461538, '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': '1524010', 'n_tokens_mistral': 433, 'n_tokens_neox': 415, 'n_words': 115}