Trace and exercise a standalone worker's real runtime surface before slimming its container
A small application bundle does not imply a small or complete runtime image when dependencies remain external. For a standalone worker inside a larger Node repository, trace the worker's reachable files with a maintained dependency tracer, then explicitly include dynamically located native binaries, WASM assets, certificates, and launch configuration. Validate the final image as its non-root runtime user with networking disabled, and execute representative native and WASM operations rather than relying on import-only checks.
Applicability and limits: this can reduce unnecessary packaging without restructuring the application, but static tracing cannot discover every dynamic asset. A smaller image may reduce distribution overhead; it does not establish lower memory use, higher throughput, or production-load readiness.