<commit_before># fig build
# fig run web bundle exec rake db:create db:schema:load ffcrm:demo:load
# fig up

FROM phusion/passenger-ruby21
MAINTAINER <NAME>

ENV HOME /root
CMD ["/sbin/my_init"]

# Configure the main working directory. This is the base
# directory used in any further RUN, COPY, and ENTRYPOINT
# commands.
RUN mkdir -p /app 
WORKDIR /app

RUN chown -R app:app /home/app

# Copy the Gemfile as well as the Gemfile.lock and install
# the RubyGems. This is a separate step so the dependencies
# will be cached unless changes to one of those two files
# are made.
COPY Gemfile Gemfile.lock ./ 
RUN sudo -u app bundle install --jobs 20 --retry 5 --without development test

# Set Rails to run in production
ENV RAILS_ENV production 
ENV RACK_ENV production

# Copy the main application.
COPY . ./

# Precompile Rails assets
RUN sudo -u app bundle exec rake assets:precompile

RUN cp config/settings.default.yml config/settings.yml
RUN cp config/database.postgres.docker.yml config/database.yml


RUN sudo -u app bundle exec rake assets:precompile
CMD sudo -u app bundle exec unicorn -p $PORT -c ./config/unicorn.rb<commit_msg>returned back to old dockerfile<commit_after># fig build
# fig run web bundle exec rake db:create db:schema:load ffcrm:demo:load
# fig up

FROM phusion/passenger-ruby21
MAINTAINER <NAME>



ENV HOME /root

CMD ["/sbin/my_init"]

ADD . /home/app/ffcrm
WORKDIR /home/app/ffcrm

RUN cp config/settings.default.yml config/settings.yml
RUN cp config/database.postgres.docker.yml config/database.yml

RUN chown -R app:app /home/app/ffcrm

# Set Rails to run in production
ENV RAILS_ENV production 
ENV RACK_ENV production

RUN sudo -u app bundle install --deployment
# Precompile Rails assets
RUN sudo -u app bundle exec rake assets:precompile

CMD sudo -u app bundle exec unicorn -p $PORT -c ./config/unicorn.rb
{'fraction_non_alphanumeric': 0.07754880694143167, 'fraction_numerical': 0.003796095444685466, 'mean_word_length': 3.92, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6215673', 'n_tokens_mistral': 623, 'n_tokens_neox': 582, 'n_words': 241}