anchor.diff:  FROM ruby:2.1
   
   MAINTAINER Stuart Owen <orcid.org/0000-0003-2130-0865>, Finn Bacall
  +
  +ENV APP_DIR /seek
  +ENV RAILS_ENV=production
   
   RUN apt-get update -qq && \
       apt-get install -y --no-install-recommends libssl-dev build-essential git libreadline-dev \
  
positive.code: RUN mkdir sqlite3-db && \
      cp docker/database.docker.sqlite3.yml config/database.yml && \
      bundle exec rake db:setup
  RUN bundle exec rake assets:precompile
  
  # Docker specific configs
  COPY docker docker
  COPY docker/nginx.conf /etc/nginx/sites-available/default
  
  # Cleanup
  
negative.code: EXPOSE 80
  
  # Shared
  VOLUME ["/seek/filestore", "/seek/sqlite3-db"]
  
  CMD ["docker/entrypoint.sh"]
  