anchor.diff:  RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode=0644 \
   	--mount=type=secret,id=nginx-repo.key,dst=/etc/ssl/nginx/nginx-repo.key,mode=0644 \
   	dnf --nodocs install -y shadow-utils ca-certificates \
  +	# temp fix for CVE-2022-1304 and CVE-2016-3709
  +	&& dnf --nodocs install -y libcom_err libxml2 \
   	&& groupadd --system --gid 101 nginx \
   	&& useradd --system --gid nginx --no-create-home --home-dir /nonexistent --comment "nginx user" --shell /bin/false --uid 101 nginx \
   	&& rpm --import https://cs.nginx.com/static/keys/nginx_signing.key \
  
positive.code: RUN --mount=type=bind,from=opentracing-lib,target=/tmp/ot/ \
  	apt-get update \
  	&& apt-get install --no-install-recommends --no-install-suggests -y libcap2-bin \
  	# temp fix for CVE-2022-40674
  	&& apt-get install -y libexpat1 \
  	&& rm -rf /var/lib/apt/lists/* \
  	&& cp -av /tmp/ot/usr/local/lib/libopentracing.so* /tmp/ot/usr/local/lib/libjaegertracing*so* /tmp/ot/usr/local/lib/libzipkin*so* /tmp/ot/usr/local/lib/libdd*so* /tmp/ot/usr/local/lib/libyaml*so* /usr/local/lib/ \
  	&& cp -av /tmp/ot/usr/lib/nginx/modules/ngx_http_opentracing_module.so /usr/lib/nginx/modules/ \
  
negative.code: 	&& printf "%s\n" "deb https://pkgs.nginx.com/app-protect/${NGINX_PLUS_VERSION}/debian ${DEBIAN_VERSION} nginx-plus" \
  	"deb https://pkgs.nginx.com/app-protect-security-updates/debian ${DEBIAN_VERSION} nginx-plus" > /etc/apt/sources.list.d/nginx-app-protect.list \
  	&& apt-get update \
  	&& apt-get install --no-install-recommends --no-install-suggests -y app-protect app-protect-attack-signatures app-protect-threat-campaigns \
  	&& apt-get purge --auto-remove -y curl; \
  	fi \
  