<commit_before>FROM golang:1.9

ENV DB_FLAG="--mysql_uri=test:zaphod@tcp(mysql:3306)/test" \
    DB_PROVIDER="mysql"

ENV HOST=0.0.0.0 \
    RPC_PORT=8090 \
    HTTP_PORT=8091

ENV DUMP_METRICS 0s

ADD . /go/src/github.com/google/trillian
WORKDIR /go/src/github.com/google/trillian

RUN go get ./server/trillian_log_server

ENTRYPOINT /go/bin/trillian_log_server \
  ${DB_FLAG} \
  --storage_system=${DB_PROVIDER} \
  --rpc_endpoint="$HOST:$RPC_PORT" \
  --http_endpoint="$HOST:$HTTP_PORT" \
  --alsologtostderr
<commit_msg>Reduce image sizes using multi-stage builds (#1155)<commit_after>FROM golang:1.10 as build

ADD . /go/src/github.com/google/trillian
WORKDIR /go/src/github.com/google/trillian

RUN go get ./server/trillian_log_server

FROM gcr.io/distroless/base

LABEL maintainer="<NAME> <<EMAIL>>"

COPY --from=build /go/bin/trillian_log_server /

ENTRYPOINT ["/trillian_log_server"]

{'fraction_non_alphanumeric': 0.1444568868980963, 'fraction_numerical': 0.029115341545352745, 'mean_word_length': 4.228070175438597, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '5519302', 'n_tokens_mistral': 380, 'n_tokens_neox': 353, 'n_words': 55}