anchor.diff:      tar -xf dockerize.tar.gz && \
       rm dockerize.tar.gz
   
  +# dumb-init for a proper PID 1
  +RUN cd /tmp && \
  +    wget https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb && \
  +    dpkg -i dumb-init_1.2.0_amd64.deb && \
  +    rm dumb-init_1.2.0_amd64.deb
  +
   # explicitly add Gemfile and install dependencies using bundler to make use of
   # Docker's caching
   WORKDIR /osem/
  
positive.code: 
  # add OSEM files and prepare them for use inside a Docker container
  COPY . /osem/
  RUN chown osem.osem /osem/ -R && \
      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 0700 -o osem $DATA_DIR
  VOLUME ["$DATA_DIR"]
  
  USER osem
  
negative.code: # 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"]
  