anchor.diff:     &&  apt-get clean all
   #COPY ./conf/ssmtp.conf /etc/ssmtp/ssmtp.conf
   
  -# Lsyncd
  -RUN apt-get install -y lsyncd
  +# composer
  +RUN curl -sS https://getcomposer.org/installer | php   && \
  +    mv composer.phar /usr/local/bin/composer           && \
  +    composer self-update
   
  -# source backupで使うcpio
  -RUN apt-get install -y cpio
  +## logrotate
  +COPY logrotate.d/apache2 /etc/logrotate.d/apache2
   
  -# composer
  -RUN \
  -    cd /usr/local/bin && \
  -    curl -sS https://getcomposer.org/installer | php && \
  -    mv composer.phar composer
  -
  -## tomcat proxy
  -RUN a2enmod proxy proxy_http proxy_ajp
  -## Rewrite log; Load Balancer IP to Client IP logging for apache2
  -RUN a2enmod remoteip
  -## Enable to insert headers
  -RUN a2enmod headers
  +WORKDIR /var/www
   
   ## npm gnutls error
   RUN apt-get update \
  
positive.code: set history=9999   \n\
  syntax on          \n\
  " > /root/.vimrc
  
  
  # Aliases
  RUN echo " \n\
  
negative.code:                    net-tools    \
                     dnsutils     \
                     bzip2        \
                     lsyncd       \
                     cpio         \
                     supervisor   \
      && apt-get clean all
  
  # npm
  # Create alias "node" of "nodejs" because currently nodejs is installed, but legacy modules access to "node".
  RUN apt-get update                                       && \
      apt-get install -y nodejs npm fonts-ipaexfont-gothic && \
      ln -s /usr/bin/nodejs /usr/bin/node                  && \
      npm i -g bower grunt-cli yarn                        && \
      apt-get autoremove -y                                && \
      apt-get clean all
  
  # Install Apache modules
  RUN a2enmod rewrite \
              proxy proxy_http proxy_ajp \
              remoteip headers 
  # Disable unnessary extensions
  RUN a2dismod dav dav_fs cgi ssl
  
  # Supervisor
  RUN mkdir -p /var/log/supervisor
  
  # mysql and other extensions
  # IMPORTANT: MUST use "dockerphp-ext-install"
  # https://hub.docker.com/_/php/
  RUN DEBIAN_FRONTEND=noninteractive    && \
      apt-get update                    && \
      apt-get install -y mysql-client   && \
      apt-get clean all
  
  # php libraries
  # https://docs.docker.com/samples/library/php/#how-to-install-more-php-extensions
  RUN apt-get update && apt-get install -y \
  		libfreetype6-dev \
  		libjpeg62-turbo-dev \
  		libmcrypt-dev       \
  		libpng-dev          \
  	        imagemagick         \
                  lynx-cur            \
                  libfreetype6-dev    \
                  libbz2-dev          \
                  zlib1g-dev          \
                  libcurl4-gnutls-dev     \
          && docker-php-ext-install -j$(nproc) iconv mcrypt \
  	&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
  	&& docker-php-ext-install -j$(nproc) gd
  
  # https://hub.docker.com/r/nazarpc/php/~/dockerfile/
  RUN docker-php-ext-install \
                  mysql mysqli pdo pdo_mysql \
  		bcmath \
  		bz2 \
                  curl \
  		exif \
  		ftp \
  		gettext \
  		mbstring \
  		opcache \
  		shmop \
  		sockets \
  		sysvmsg \
  		sysvsem \
  		sysvshm \
  		zip
  
  # ruby
  # https://github.com/docker-library/ruby/blob/1b08f346713a1293c2a9238e470e086126e2e28f/2.3/Dockerfile
  