<commit_before>FROM debian:jessie
MAINTAINER <NAME> <EMAIL>

ENV DROPBOX_FOLDER="site"

ENV HOME=/app
ENV LC_ALL="en_US.UTF-8"

RUN DEBIAN_FRONTEND=noninteractive \
  apt-get update && \
  apt-get -y install wget locales nginx && \
  apt-get clean

# make sure utf-8 works in filenames etc
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
RUN locale-gen

RUN mkdir /app
WORKDIR /app

RUN \
  wget -O - "https://github.com/krallin/tini/releases/download/v0.9.0/tini" > /usr/local/bin/tini && \
  chmod a+x /usr/local/bin/tini && \
  wget -O - "https://github.com/cortesi/modd/releases/download/v0.2/modd-0.2-linux64.tgz" | tar xfz - && \
  mv tmp/modd-0.2-linux64/modd /usr/local/bin && \
  rm -rf tmp && \
  wget -O - "https://github.com/spf13/hugo/releases/download/v0.15/hugo_0.15_linux_amd64.tar.gz" | tar xfz - && \
  mv hugo_0.15_linux_amd64/hugo_0.15_linux_amd64 /usr/local/bin/hugo && \
  rm -rf hugo_0.15_linux_amd64 && \
  wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf - -C /app

RUN mkdir -p /app/.dropbox /app/Dropbox
COPY run_hugo nginx.conf modd.conf /app/
RUN chown -R nobody:nogroup /app

USER nobody

VOLUME ["/app/.dropbox", "/app/Dropbox"]
EXPOSE 8080
CMD ["/usr/local/bin/tini", "--", "/usr/local/bin/modd"]<commit_msg>Update to latest versions<commit_after>FROM debian:jessie
MAINTAINER <NAME> <EMAIL>

ENV DROPBOX_FOLDER="site"

ENV HOME=/app
ENV LC_ALL="en_US.UTF-8"

RUN DEBIAN_FRONTEND=noninteractive \
  apt-get update && \
  apt-get -y install wget locales nginx && \
  apt-get clean

# make sure utf-8 works in filenames etc
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
RUN locale-gen

RUN mkdir /app
WORKDIR /app

RUN \
  wget -O - "https://github.com/krallin/tini/releases/download/v0.10.0/tini" > /usr/local/bin/tini && \
  chmod a+x /usr/local/bin/tini && \
  wget -O - "https://github.com/cortesi/modd/releases/download/v0.4/modd-0.4-linux64.tgz" | tar xfz - && \
  mv modd-0.4-linux64/modd /usr/local/bin && \
  rm -rf tmp && \
  wget -O - "https://github.com/spf13/hugo/releases/download/v0.17/hugo_0.17_Linux-64bit.tar.gz" | tar xfz - && \
  mv hugo_0.17_linux_amd64/hugo_0.17_linux_amd64 /usr/local/bin/hugo && \
  rm -rf hugo_0.17_linux_amd64 && \
  wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf - -C /app

RUN mkdir -p /app/.dropbox /app/Dropbox
COPY run_hugo nginx.conf modd.conf /app/
RUN chown -R nobody:nogroup /app

USER nobody

VOLUME ["/app/.dropbox", "/app/Dropbox"]
EXPOSE 8080
CMD ["/usr/local/bin/tini", "--", "/usr/local/bin/modd"]
{'fraction_non_alphanumeric': 0.17068352429869615, 'fraction_numerical': 0.039905175819834056, 'mean_word_length': 3.0447284345047922, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 8, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2669552', 'n_tokens_mistral': 1194, 'n_tokens_neox': 1123, 'n_words': 210}