<commit_before>FROM golang:1.12-alpine as builder
MAINTAINER siddontang

RUN apk add --no-cache \
    make \
    git

COPY . /go/src/github.com/pingcap/pd
WORKDIR /go/src/github.com/pingcap/pd

RUN make

FROM alpine:3.5

COPY --from=builder /go/src/github.com/pingcap/pd/bin/pd-server /pd-server

EXPOSE 2379 2380

ENTRYPOINT ["/pd-server"]<commit_msg>docker: add jq and cache dependencies (#1519)<commit_after>FROM golang:1.12-alpine as builder
MAINTAINER siddontang

RUN apk add --no-cache \
    make \
    git

# Install jq for pd-ctl
RUN cd / && \
    wget https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 -O jq && \
    chmod +x jq

RUN mkdir -p /go/src/github.com/pingcap/pd
WORKDIR /go/src/github.com/pingcap/pd

# Cache dependencies
COPY go.mod .
COPY go.sum .

RUN GO111MODULE=on go mod download

COPY . .

RUN make

FROM alpine:3.5

COPY --from=builder /go/src/github.com/pingcap/pd/bin/pd-server /pd-server
COPY --from=builder /go/src/github.com/pingcap/pd/bin/pd-ctl /pd-ctl
COPY --from=builder /jq /usr/local/bin/jq

EXPOSE 2379 2380

ENTRYPOINT ["/pd-server"]
{'fraction_non_alphanumeric': 0.13748854262144822, 'fraction_numerical': 0.03391384051329056, 'mean_word_length': 3.029520295202952, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '1237431', 'n_tokens_mistral': 474, 'n_tokens_neox': 430, 'n_words': 98}