anchor.diff:  	source /tmp/rhel_license \
   	&& subscription-manager register --org=${RHEL_ORGANIZATION} --activationkey=${RHEL_ACTIVATION_KEY} || true \
   	&& subscription-manager attach \
  -    && curl -sS https://cs.nginx.com/static/files/app-protect-dos-7.repo > /etc/yum.repos.d/app-protect-dos-7.repo \
  -    && subscription-manager repos --enable rhel-7-server-optional-rpms --enable rhel-7-server-extras-rpms \
  -    && rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm \
  -    && yum clean all \
  -    && yum -y install epel-release \
  -    && yum -y install app-protect-dos-${NGINX_PLUS_VERSION#r}* \
  -    && rm /etc/yum.repos.d/app-protect-dos-7.repo \
  -    && subscription-manager unregister
  -
  -############################################# Base image for UBI with NGINX Plus and App Protect and App Protect Dos #############################################
  +	&& subscription-manager repos --enable rhel-7-server-optional-rpms --enable rhel-7-server-extras-rpms \
  +	&& curl -fsSL https://cs.nginx.com/static/files/app-protect-dos-7.repo > /etc/yum.repos.d/app-protect-dos-7.repo \
  +	&& yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm \
  +	&& yum install -y app-protect-dos-${NGINX_PLUS_VERSION#r}* \
  +	&& rm /etc/yum.repos.d/app-protect-dos-7.repo \
  +	&& subscription-manager unregister \
  +	&& yum clean all && rm -rf /var/cache/yum
  +
  +
  +############################################# Base image for UBI with NGINX Plus, App Protect WAF and App Protect Dos #############################################
   FROM ubi-plus-nap as ubi-plus-nap-dos
   ARG NGINX_PLUS_VERSION
   
  
positive.code: 	source /tmp/rhel_license \
  	&& subscription-manager register --org=${RHEL_ORGANIZATION} --activationkey=${RHEL_ACTIVATION_KEY} || true \
  	&& subscription-manager attach \
      && curl -sS https://cs.nginx.com/static/files/app-protect-dos-7.repo > /etc/yum.repos.d/app-protect-dos-7.repo \
      && yum clean all \
      && yum -y install epel-release \
      && yum -y install app-protect-dos-${NGINX_PLUS_VERSION#r}* \
      && rm /etc/yum.repos.d/app-protect-dos-7.repo \
      && subscription-manager unregister
  
  ############################################# Base images containing libs for Opentracing #############################################
  FROM opentracing/nginx-opentracing:nginx-1.21.4 as opentracing-lib
  
negative.code: 	&& microdnf --nodocs install -y nginx-plus-${NGINX_PLUS_VERSION} nginx-plus-module-njs-${NGINX_PLUS_VERSION}
  
  
  ############################################# Base image for UBI with NGINX Plus and App Protect WAF #############################################
  FROM ubi-plus as ubi-plus-nap
  ARG NGINX_PLUS_VERSION
  
  