<commit_before>FROM golang:alpine3.6

ENV GOPATH /go

RUN \
  adduser -h /site -s /sbin/nologin -u 1000 -D hugo && \
  apk add --no-cache dumb-init && \
  apk add --no-cache --virtual .build-deps \
    git \
    make && \
  go get github.com/kardianos/govendor && \
  govendor get github.com/gohugoio/hugo && \
  cd $GOPATH/src/github.com/gohugoio/hugo && \
  make install test && \
  rm -rf $GOPATH/src/* && \
  apk del .build-deps

USER hugo

WORKDIR /site

EXPOSE 1313

ENTRYPOINT ["/usr/bin/dumb-init", "--", "hugo"]

CMD [ "--help" ]
<commit_msg>Dockerfile: Optimize Docker image size<commit_after>FROM golang:alpine3.6

ENV GOPATH /go

RUN \
  adduser -h /site -s /sbin/nologin -u 1000 -D hugo && \
  apk add --no-cache \
    dumb-init \
    git && \
  go get github.com/kardianos/govendor && \
  govendor get github.com/gohugoio/hugo && \
  cd $GOPATH/src/github.com/gohugoio/hugo && \
  go install && \
  cd $GOPATH && \
  rm -rf pkg src .cache bin/govendor && \
  apk del --no-cache git go

USER    hugo
WORKDIR /site
VOLUME  /site
EXPOSE  1313

ENTRYPOINT ["/usr/bin/dumb-init", "--", "hugo"]
CMD [ "--help" ]

{'fraction_non_alphanumeric': 0.16160714285714287, 'fraction_numerical': 0.017857142857142856, 'mean_word_length': 2.356287425149701, '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': '6973839', 'n_tokens_mistral': 499, 'n_tokens_neox': 472, 'n_words': 114}