<commit_before>FROM alpine:3.3
ADD *.go /public-people-api/
ADD people/*.go /public-people-api/people/
RUN apk add --update bash \
  && apk --update add git bzr gcc \
  && apk --update add go \
  && export GOPATH=/gopath \
  && REPO_PATH="github.com/Financial-Times/public-people-api" \
  && mkdir -p $GOPATH/src/${REPO_PATH} \
  && cp -r public-people-api/* $GOPATH/src/${REPO_PATH} \
  && cd $GOPATH/src/${REPO_PATH} \
  && go get -t ./... \
  && cd $GOPATH/src/${REPO_PATH} \
  && go build  \
  && mv public-people-api /app \
  && apk del go git bzr \
  && rm -rf $GOPATH /var/cache/apk/*
CMD exec /app --neo-url=$NEO_URL --port=$APP_PORT --batchSize=$BATCH_SIZE --graphiteTCPAddress=$GRAPHITE_ADDRESS --graphitePrefix=$GRAPHITE_PREFIX --logMetrics=false --env=local

<commit_msg>Added cache duration param<commit_after>FROM alpine:3.3
ADD *.go /public-people-api/
ADD people/*.go /public-people-api/people/
RUN apk add --update bash \
  && apk --update add git bzr gcc \
  && apk --update add go \
  && export GOPATH=/gopath \
  && REPO_PATH="github.com/Financial-Times/public-people-api" \
  && mkdir -p $GOPATH/src/${REPO_PATH} \
  && cp -r public-people-api/* $GOPATH/src/${REPO_PATH} \
  && cd $GOPATH/src/${REPO_PATH} \
  && go get -t ./... \
  && cd $GOPATH/src/${REPO_PATH} \
  && go build  \
  && mv public-people-api /app \
  && apk del go git bzr \
  && rm -rf $GOPATH /var/cache/apk/*
CMD exec /app --neo-url=$NEO_URL --port=$APP_PORT --graphiteTCPAddress=$GRAPHITE_ADDRESS --graphitePrefix=$GRAPHITE_PREFIX --logMetrics=$LOG_METRICS --cache-duration=$CACHE_DURATION


{'fraction_non_alphanumeric': 0.18761844598862917, 'fraction_numerical': 0.002526847757422615, 'mean_word_length': 2.9207920792079207, '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': '1810431', 'n_tokens_mistral': 636, 'n_tokens_neox': 618, 'n_words': 130}