<commit_before>FROM ctac/ruby-base:2.1

ENV APP_HOME /social_media

RUN mkdir $APP_HOME
WORKDIR $APP_HOME

RUN apt-get update && \
  DEBIAN_FRONTEND=noninteractive apt-get install git nodejs -y --no-install-recommends && \
  apt-get clean && \
  rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

ADD Gemfile* $APP_HOME/

ARG RAILS_ENV=production

RUN bundle install --jobs 4

ADD . $APP_HOME

RUN mkdir public/assets && \
  mkdir tmp && \
  mkdir tmp/pids

ARG REGISTRY_HOSTNAME=unprovided.domain
ARG REGISTRY_API_HOST=https://unprovided.domain

RUN bundle exec rake assets:precompile

EXPOSE 80
ENTRYPOINT [ "unicorn", "-c", "config/unicorn.rb" ]<commit_msg>update dockerfile<commit_after>FROM ctac/ruby-base:2.1

ENV APP_HOME /social_media

RUN mkdir $APP_HOME
WORKDIR $APP_HOME

RUN apt-get update && \
  DEBIAN_FRONTEND=noninteractive apt-get install git nodejs -y --no-install-recommends && \
  apt-get clean && \
  rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

ADD Gemfile* $APP_HOME/

ARG RAILS_ENV=production

RUN bundle install --jobs 4

ADD . $APP_HOME

RUN mkdir public/assets && \
  mkdir tmp && \
  mkdir tmp/pids

RUN df --local -P | awk {'if (NR!=1) print $6'} | xargs -I '{}' find '{}' -xdev -type d -perm -0002 2&gt;/dev/null | xargs chmod a+t

RUN rm -rf /usr/local/bundle/gems/swagger-docs-0.2.8/spec/

ARG REGISTRY_HOSTNAME=unprovided.domain
ARG REGISTRY_API_HOST=https://unprovided.domain

RUN bundle exec rake assets:precompile

EXPOSE 80
ENTRYPOINT [ "unicorn", "-c", "config/unicorn.rb" ]
{'fraction_non_alphanumeric': 0.13443708609271524, 'fraction_numerical': 0.013245033112582781, 'mean_word_length': 3.6349693251533743, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '7262558', 'n_tokens_mistral': 605, 'n_tokens_neox': 572, 'n_words': 148}