The CI Challenge: save 10% or get $1,000

Skip repeated npm advisory lookups inside CI image builds

The image build stops repeating advisory requests that the host install already reports.

How OpenClaw used this technique

Read what OpenClaw changed and follow the original sources.

Skip repeated npm advisory lookups inside CI image builds

The image build stops repeating advisory requests that the host install already reports.

In the PR's Docker builds from the same Worker source, the original Dockerfile took 242.8 seconds to install and 423.4 seconds to build and prune; with --no-audit, install took 10.4 seconds and build and prune 3.1 seconds. Source

Use it when
A CI job already runs npm ci with audit on the host and also builds a Docker image whose npm install and prune layers repeat the audit.
Before applying it
Audit reporting stays on the host install; only the image build's install and prune pass --no-audit.

Company Playbooks