<commit_before>FROM golang:1.9.3 as builder

# Install dep to use for dependency management
ENV DEP_VERSION 0.3.2
RUN curl -o /usr/local/bin/dep -L https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 && \
      chmod a+x /usr/local/bin/dep

WORKDIR /go/src/github.com/toolhouse/verify-deployment-manifest

# Install dependencies
COPY Gopkg.* ./
RUN dep ensure -vendor-only

# Build go binary
COPY *.go ./
RUN CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags '-w'


FROM alpine:3.5

# SSL CA Root Certs
RUN apk --no-cache add ca-certificates
COPY --from=builder /go/src/github.com/toolhouse/verify-deployment-manifest/verify-deployment-manifest /verify-deployment-manifest
CMD ["/verify-deployment-manifest"]
WORKDIR /
<commit_msg>Upgrade to dep version 0.4.1<commit_after>FROM golang:1.9.3 as builder

# Install dep to use for dependency management
ENV DEP_VERSION 0.4.1
RUN curl -o /usr/local/bin/dep -L https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 && \
      chmod a+x /usr/local/bin/dep

WORKDIR /go/src/github.com/toolhouse/verify-deployment-manifest

# Install dependencies
COPY Gopkg.* ./
RUN dep ensure -vendor-only

# Build go binary
COPY *.go ./
RUN CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags '-w'


FROM alpine:3.5

# SSL CA Root Certs
RUN apk --no-cache add ca-certificates
COPY --from=builder /go/src/github.com/toolhouse/verify-deployment-manifest/verify-deployment-manifest /verify-deployment-manifest
CMD ["/verify-deployment-manifest"]
WORKDIR /

{'fraction_non_alphanumeric': 0.12782440284054228, 'fraction_numerical': 0.016139444803098774, 'mean_word_length': 3.769230769230769, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5338332', 'n_tokens_mistral': 569, 'n_tokens_neox': 535, 'n_words': 136}