# Only needed when HTTPS is intercepted by a proxy with its own CA (as in the sandbox used for the post). # Copy that CA bundle next to this file as ca.crt, then: # docker build -f scripts/Dockerfile.trivy -t trivy-local:0.76.2 scripts/ # On a normal network use ghcr.io/aquasecurity/trivy:0.76.2 directly (TRIVY_IMAGE in env.sh). FROM ghcr.io/aquasecurity/trivy:0.76.2 COPY ca.crt /tmp/ca.crt RUN cat /tmp/ca.crt >> /etc/ssl/certs/ca-certificates.crt