<commit_before>FROM gliderlabs/alpine:3.1
MAINTAINER <NAME> <<EMAIL>>
ENTRYPOINT ["/kuisp"]
CMD [ "-p", "9090", "-c", "/site/osconsole/config.js.tmpl=/site/osconsole/config.js", "-s", "/kubernetes/api/=https://${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT}/api/", "-s", "/kubernetes/osapi/=https://${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT}/osapi/", "--skip-cert-validation", "--default-page=/index.html" ]
EXPOSE 9000

ENV KUISP_VERSION 0.5

RUN apk-install ca-certificates curl tar && \
    curl -L https://github.com/jimmidyson/kuisp/releases/download/v${KUISP_VERSION}/kuisp-${KUISP_VERSION}-linux-amd64.tar.gz | \
      tar xzv && \
    apk del curl tar

COPY site /site/
RUN chown nobody:nobody /site/osconsole/

WORKDIR /site/
USER nobody<commit_msg>Upgrade to kuisp 0.6 to add in cache headers<commit_after>FROM gliderlabs/alpine:3.1
MAINTAINER <NAME> <<EMAIL>>
ENTRYPOINT ["/kuisp"]
CMD [ "-p", "9090", "-c", "/site/osconsole/config.js.tmpl=/site/osconsole/config.js", "-s", "/kubernetes/api/=https://${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT}/api/", "-s", "/kubernetes/osapi/=https://${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT}/osapi/", "--skip-cert-validation", "--default-page=/index.html", "--max-age=24h" ]
EXPOSE 9000

ENV KUISP_VERSION 0.6

RUN apk-install ca-certificates curl tar && \
    curl -L https://github.com/jimmidyson/kuisp/releases/download/v${KUISP_VERSION}/kuisp-${KUISP_VERSION}-linux-amd64.tar.gz | \
      tar xzv && \
    apk del curl tar

COPY site /site/
RUN chown nobody:nobody /site/osconsole/

WORKDIR /site/
USER nobody
{'fraction_non_alphanumeric': 0.18648310387984982, 'fraction_numerical': 0.02002503128911139, 'mean_word_length': 4.438775510204081, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 6, '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': '39667', 'n_tokens_mistral': 650, 'n_tokens_neox': 612, 'n_words': 104}