anchor.diff:      && cat ${CRS_DIR}/base_rules/modsecurity_*.conf >> /etc/nginx/modsecurity.conf \
       && cp ${CRS_DIR}/base_rules/*.data /etc/nginx/ \
       && cp ModSecurity/unicode.mapping /etc/nginx/unicode.mapping \
  -    && rm -rf ${CRS_DIR} *.tar.gz
  -
  -# Compile Nginx
  -RUN wget http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz \
  +    && echo "#### Compile Nginx ####" \
  +    && wget http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz \
       && tar -xvzf nginx-${NGINX_VERSION}.tar.gz \
       && cd nginx-${NGINX_VERSION}/ \
       && ./configure $NGINX_ADD_MODULES $NGINX_EXTRA_MODULES \
       && make \
       && make install \
       && cd .. \
  -    && rm -rf nginx-${NGINX_VERSION} nginx-${NGINX_VERSION}.tar.gz
  +    && echo "#### Clean Solution ####" \
  +    && yum -y --setopt=group_command=objects groupremove 'Development Tools' \
  +    && yum -y autoremove \
  +    && yum -y remove *-devel \
  +    && yum -y clean all \
  +    && rm -rf $WORKING_DIRECTORY
   
   # Link nginx and clean solution
   RUN ln -s /usr/local/nginx/sbin/nginx /usr/bin/nginx \
       && cp /usr/local/nginx/conf/*.* /etc/nginx/
   WORKDIR /etc/nginx
  -RUN rm -rf $WORKING_DIRECTORY \
  -    && yum -y groupremove "Development tools" \
  -    && yum clean all
   
   # Check Nginx installation
   RUN nginx -V
  
positive.code: ENV NGINX_EXTRA_MODULES=" --with-http_realip_module --with-http_ssl_module "
  ENV LC_ALL=C
  
  # Mod Security
  RUN git clone https://github.com/SpiderLabs/ModSecurity.git \
      && cd ModSecurity \
      && git checkout tags/v${MODSEC_VERSION} \
      && ./autogen.sh \
      && ./configure --enable-standalone-module --disable-mlogc \
      && make \
      && make install
  
  # Mod security configs
  RUN wget https://raw.githubusercontent.com/SpiderLabs/ModSecurity/master/modsecurity.conf-recommended \
      && mkdir -p /etc/nginx \
      && cat modsecurity.conf-recommended  > /etc/nginx/modsecurity.conf \
      && wget https://github.com/SpiderLabs/owasp-modsecurity-crs/tarball/master -O owasp-modsecurity-crs.tar.gz \
      && tar -xvzf owasp-modsecurity-crs.tar.gz \
      && CRS_DIR=$(find . -type d -name SpiderLabs-owasp-modsecurity-crs*) \
  
negative.code: 
  MAINTAINER dan78uk
  
  # Set working dir
  ENV WORKING_DIRECTORY=/opt/build
  RUN mkdir -p $WORKING_DIRECTORY
  WORKDIR $WORKING_DIRECTORY
  
  # ENV build variables
  ENV LANG C.UTF-8
  