<commit_before>FROM ruby:2.3.1-alpine

RUN apk add --update build-base nodejs tzdata postgresql-dev linux-headers git

COPY . /app
WORKDIR /app

VOLUME /app/log

EXPOSE 3000

RUN gem install bundler && \
    bundle install --without development:test --system && \
    bundle exec rake assets:precompile

CMD ["sh", "-c", "exec bundle exec puma -C config/puma.rb"]<commit_msg>Compile assets for Production in Dockerfile<commit_after>FROM ruby:2.3.1-alpine

RUN apk add --update build-base nodejs tzdata postgresql-dev linux-headers git

COPY . /app
WORKDIR /app

VOLUME /app/log

EXPOSE 3000

RUN gem install bundler && \
    bundle install --without development:test --system && \
    RAILS_ENV=production bundle exec rake assets:precompile

CMD ["sh", "-c", "exec bundle exec puma -C config/puma.rb"]
{'fraction_non_alphanumeric': 0.10861423220973783, 'fraction_numerical': 0.017478152309612985, 'mean_word_length': 3.6358381502890174, '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': '2908448', 'n_tokens_mistral': 282, 'n_tokens_neox': 261, 'n_words': 89}