anchor.diff:  RUN echo "daemon off;" >> /etc/nginx/nginx.conf
   
   # Install PHP.
  +RUN add-apt-repository ppa:ondrej/php
   # Avoid "debconf: unable to initialize frontend: Dialog" by using DEBIAN_FRONTEND=noninteractive before install command.
  -RUN DEBIAN_FRONTEND=noninteractive apt-get -y install php7.0-fpm
  +RUN DEBIAN_FRONTEND=noninteractive apt-get -y install php7.3-fpm
   RUN echo "php version: $(php -v)"
   
   # Add nginx daemon.
  
positive.code: # Use phusion/baseimage with a specific version as base image.
  # See https://github.com/phusion/baseimage-docker/blob/master/Changelog.md for a list of version numbers.
  # FROM phusion/baseimage:<VERSION>
  FROM phusion/baseimage:0.9.19
  
  # Use baseimage-docker's init system.
  CMD ["/sbin/my_init"]
  
  # BEGIN Build instructions =============================================================================================
  
  # Enable SSH.
  RUN rm -f /etc/service/sshd/down
  
  # Regenerate SSH host keys. baseimage-docker does not contain any, so you
  # have to do that yourself. You may also comment out this instruction; the
  # init system will auto-generate one during boot.
  RUN /etc/my_init.d/00_regen_ssh_host_keys.sh
  
  # Install nginx mainline.
  # "We recommend that in general you deploy the NGINX mainline branch at all times." - nginx.com
  
negative.code: \n\
      location ~ \.php$ {\n\
          include snippets/fastcgi-php.conf;\n\
          fastcgi_pass unix:/run/php/php7.3-fpm.sock;\n\
      }\n\
  }'\
  > /etc/nginx/sites-enabled/default
  