anchor.diff:  RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/apk/cert.pem,mode=0644 \
   	--mount=type=secret,id=nginx-repo.key,dst=/etc/apk/cert.key,mode=0644 \
   	--mount=type=bind,from=alpine-opentracing-lib,target=/tmp/ot/ \
  -	# temp fix for CVE-2022-2097
  -	apk upgrade --no-cache libcrypto1.1 libssl1.1 \
  -	&& wget -nv -O /etc/apk/keys/nginx_signing.rsa.pub https://cs.nginx.com/static/keys/nginx_signing.rsa.pub \
  +	wget -nv -O /etc/apk/keys/nginx_signing.rsa.pub https://cs.nginx.com/static/keys/nginx_signing.rsa.pub \
   	&& printf "%s\n" "https://pkgs.nginx.com/plus/${NGINX_PLUS_VERSION}/alpine/v$(grep -E -o '^[0-9]+\.[0-9]+' /etc/alpine-release)/main" >> /etc/apk/repositories \
   	&& apk add --no-cache libcap nginx-plus nginx-plus-module-njs nginx-plus-module-opentracing libcurl \
   	&& cp -av /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/ \
  
positive.code: 
  ############################################# Base image for Alpine #############################################
  # docker.io/library/nginx is a temporary workaround for Dependabot to see this as different from the one used in Debian
  FROM docker.io/library/nginx:1.23.0-alpine AS alpine
  
  RUN --mount=type=bind,from=alpine-opentracing-lib,target=/tmp/ot/ \
  	apk add --no-cache libcap libstdc++ \
  	# temp fix for CVE-2022-27405, CVE-2022-1586, CVE-2022-32205, CVE-2022-2097, CVE-2022-32205, CVE-2022-2097
  	&& apk upgrade --no-cache freetype pcre2 curl libcrypto1.1 libcurl libssl1.1 \
  	&& 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/ \
  	&& ldconfig /usr/local/lib/
  
negative.code: 
  
  ############################################# Base images containing libs for Opentracing #############################################
  FROM opentracing/nginx-opentracing:nginx-1.23.1 as opentracing-lib
  FROM opentracing/nginx-opentracing:nginx-1.23.1-alpine as alpine-opentracing-lib
  
  
  ############################################# Base image for Debian #############################################
  FROM nginx:1.23.1 AS debian
  
  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 \
  	&& 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/ \
  