<commit_before>FROM ruby:2.2.4

ENV BUNDLE_JOBS 4
ENV RAILS_ENV production
ENV PUMA_PORT 3000
ENV RAILS_SERVE_STATIC_FILES true
ENV RAILS_LOG_TO_STDOUT true
ENV BUNDLE_BIN false
ENV PATH "/app/bin:${PATH}"

COPY Gemfile* /app/
RUN apt-get update -qq && \
  mkdir -p /app/tmp /gems && \
  apt-get install -y build-essential libpq-dev && \
  gem install bundler && \ # upgrade to latest Bundler
  groupadd --gid 4711 hacken && \
  useradd -m --uid 4711 --gid 4711 hacken && \
  chown hacken:hacken -Rv /app /gems

USER hacken

WORKDIR /app
RUN bundle install --path=/gems
COPY . /app

HEALTHCHECK --interval=5m --timeout=3s \
  CMD curl -f http://localhost:3000/deutschland || exit 1

CMD bundle exec puma -C config/puma.rb
<commit_msg>Fix Syntax error in Dockerfile build.<commit_after>FROM ruby:2.2.4

ENV BUNDLE_JOBS 4
ENV RAILS_ENV production
ENV PUMA_PORT 3000
ENV RAILS_SERVE_STATIC_FILES true
ENV RAILS_LOG_TO_STDOUT true
ENV BUNDLE_BIN false
ENV PATH "/app/bin:${PATH}"

COPY Gemfile* /app/
RUN apt-get update -qq && \
  mkdir -p /app/tmp /gems && \
  apt-get install -y build-essential libpq-dev && \
  gem install bundler && \
  groupadd --gid 4711 hacken && \
  useradd -m --uid 4711 --gid 4711 hacken && \
  chown hacken:hacken -Rv /app /gems

USER hacken

WORKDIR /app
RUN bundle install --path=/gems
COPY . /app

HEALTHCHECK --interval=5m --timeout=3s \
  CMD curl -f http://localhost:3000/deutschland || exit 1

CMD bundle exec puma -C config/puma.rb

{'fraction_non_alphanumeric': 0.11202185792349727, 'fraction_numerical': 0.036885245901639344, 'mean_word_length': 3.2097701149425286, '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': '3331361', 'n_tokens_mistral': 619, 'n_tokens_neox': 547, 'n_words': 175}