anchor.diff:      && cd nginx-${NGINX_VERSION}/ \
       && ./configure $NGINX_ADD_MODULES $NGINX_EXTRA_MODULES \
       && make \
  -    && make install
  +    && make install \
  +    && cd .. \
  +    && rm -rf nginx-${NGINX_VERSION} nginx-${NGINX_VERSION}.tar.gz
   
   # Link nginx and clean solution
  -RUN ln -s /usr/local/nginx/sbin/nginx /usr/bin/nginx
  -RUN cp /usr/local/nginx/conf/*.* /etc/nginx/
  +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
  -RUN yum -y groupremove "Development tools"
  -RUN yum -y clean headers
  -RUN yum -y clean packages
  +RUN rm -rf $WORKING_DIRECTORY \
  +    && yum -y groupremove "Development tools" \
  +    && yum clean all
   
   # Check Nginx installation
   RUN nginx -V
   
   # Enable basic configurations and import of external configurations
  -RUN yum -y install openssl && yum -y clean all
  -RUN rm -rf /etc/nginx/conf.d/*; \
  +RUN yum -y install openssl \
  +    && yum -y clean all \
  +    && rm -rf /etc/nginx/conf.d/*; \
       mkdir -p /etc/nginx/external
   RUN sed -i 's/access_log.*/access_log \/dev\/stdout;/g' /etc/nginx/nginx.conf; \
       sed -i 's/error_log.*/error_log \/dev\/stdout info;/g' /etc/nginx/nginx.conf;
  
positive.code:     && cat ${CRS_DIR}/modsecurity_crs_10_setup.conf.example >> /etc/nginx/modsecurity.conf \
      && 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
  
  # Compile Nginx
  RUN wget http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz \
  
negative.code: MAINTAINER dan78uk
  
  # Install required dependencies
  RUN yum -y groups mark convert \
      && yum clean all && yum -y swap fakesystemd systemd \
      && yum -y groupinstall 'Development Tools' && yum -y clean all \
      && yum -y install gcc-c++ pcre-dev pcre-devel zlib-devel make unzip httpd-devel libxml2 libxml2-devel wget openssl-devel \
      && yum -y clean all
  
  # Set working dir
  ENV WORKING_DIRECTORY=/opt/nginx_mod_security
  