anchor.diff:  # from a webserver
   ENV RAILS_SERVE_STATIC_FILES 1
   
  +# Runs "/usr/bin/dumb-init -- /my/script --with --args"
  +ENTRYPOINT ["/usr/bin/dumb-init", "--"]
  +
   CMD ["bash", "/init.sh"]
  
positive.code:     tar -xf dockerize.tar.gz && \
      rm dockerize.tar.gz
  
  # explicitly add Gemfile and install dependencies using bundler to make use of
  # Docker's caching
  WORKDIR /osem/
  
negative.code: 
  # add OSEM files and prepare them for use inside a Docker container
  COPY . /osem/
  RUN chown -R osem.root /osem/ && \
      chmod -R g=u /osem/ && \
      mv /osem/config/database.yml.docker /osem/config/database.yml
  
  # data directory is used to cache the secret key in a file
  ENV DATA_DIR /data
  RUN install -d -m 0770 -o osem -g root $DATA_DIR
  VOLUME ["$DATA_DIR"]
  
  USER osem
  