anchor.diff:    nginx
   
   # Set an environment variable where the Rails app is installed to inside of Docker image
  +
  +RUN git clone https://github.com/cenit-io/cenit.git /var/www/cenit
   ENV RAILS_ROOT /var/www/cenit
  -RUN mkdir -p $RAILS_ROOT
   
   RUN mkdir -p /var/www/shared/log
   RUN mkdir -p /var/www/shared/pids
  
positive.code: # Set working directory
  WORKDIR $RAILS_ROOT
  
  # Setting env up
  ENV RAILS_ENV='production'
  ENV RACK_ENV='production'
  
  # Adding gems
  COPY Gemfile Gemfile
  COPY Gemfile.lock Gemfile.lock
  
  RUN bundle install --jobs 20 --retry 5 --without development test
  
  RUN gem install foreman
  
  # Adding project files
  COPY . .
  
  ENV SKIP_MONGO_CLIENT='true'
  
  RUN set -x; \
     bundle exec rake assets:precompile
  
negative.code: RUN echo "\ndaemon off;" >> /etc/nginx/nginx.conf
  RUN chown -R www-data:www-data /var/lib/nginx
  
  RUN cp server_config/cenit.conf /etc/nginx/sites-enabled/cenit.conf
  RUN rm /etc/nginx/sites-enabled/default
  
  EXPOSE 80 3000
  