anchor.diff:      apt-get clean && \
       rm -rf /var/lib/apt/lists/*
   
  -# throw errors if Gemfile has been modified since Gemfile.lock
  -RUN bundle config --global frozen 1
  -
   RUN mkdir -p /usr/src/app
   WORKDIR /usr/src/app
   ENV RAILS_ENV=production
   
  -COPY Gemfile /usr/src/app/
  -COPY Gemfile.lock /usr/src/app/
  -RUN bundle install
  +# Bundle install throw errors if Gemfile has been modified since Gemfile.lock
  +COPY Gemfile* ./
  +RUN bundle config --global frozen 1 && \
  +    bundle install
   
   # App code (picky about what gets copied to make caching of the assets:precompile more likely)
  -COPY Rakefile Rakefile
  -COPY config.ru config.ru
  +COPY Rakefile config.ru ./
   COPY app app
   COPY config config
   COPY db db
  
positive.code: COPY solr solr
  COPY vendor vendor
  
  # Temp Database (for asset compilation)
  RUN cp config/database.sqlite.yml config/database.yml
  RUN bundle exec rake db:setup
  
  # Compile assets
  RUN bundle exec rake assets:precompile
  
  # Config
  # RUN cp docker/database.docker.yml config/database.yml
  COPY docker/seek_local.rb config/initializers/seek_local.rb
  COPY config/sunspot.default.yml config/sunspot.yml
  
  
negative.code: COPY docker/nginx.conf /etc/nginx/sites-available/default
  
  # Cleanup
  RUN rm -rf /tmp/* /var/tmp/*
  
  # Network
  EXPOSE 80
  