<commit_before>FROM tomcat:8.0.47-jre8

ENV KJWIKIDOCKER_VERSION build323
ENV KJWIKIDOCKER_VERSION latest
ENV KJWIKIDOCKER_IMAGE kjwikidocker

COPY ./kjwikigdocker.war /usr/local/tomcat/webapps/kjwikigdocker.war

RUN /bin/mkdir -p /var/kjwiki

# set default locale to ja_JP.UTF-8
ENV LANG ja_JP.UTF-8
ENV LANGUAGE ja_JP:ja
ENV LC_ALL ja_JP.UTF-8

EXPOSE 8080
CMD ["catalina.sh", "run"]<commit_msg>set LANG , set tomcat8 user<commit_after>FROM tomcat:8.0-jre8

ENV KJWIKIDOCKER_VERSION build323
ENV KJWIKIDOCKER_VERSION latest
ENV KJWIKIDOCKER_IMAGE kjwikidocker

COPY ./kjwikigdocker.war /usr/local/tomcat/webapps/kjwikigdocker.war

RUN apt-get update
RUN apt-get -y upgrade

RUN apt-get install -y locales
RUN locale-gen ja_JP.UTF-8
RUN localedef -f UTF-8 -i ja_JP ja_JP

ENV LANG ja_JP.UTF-8
ENV LANGUAGE ja_JP:jp
ENV LC_ALL ja_JP.UTF-8

RUN /bin/mkdir -p /var/kjwiki

RUN useradd tomcat8
RUN chown -R tomcat8 /var/kjwiki /usr/local/tomcat
USER tomcat8

EXPOSE 8080
CMD ["catalina.sh", "run"]
{'fraction_non_alphanumeric': 0.08853118712273642, 'fraction_numerical': 0.03319919517102616, 'mean_word_length': 4.467032967032967, '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': '3125473', 'n_tokens_mistral': 466, 'n_tokens_neox': 418, 'n_words': 105}