Debian's /var/lock is a symlink, which cannot overwrite the runtime image's
directory during COPY, and apt state has no business in the production layer.
The dev image has no curl, and the dependency closure was lost to apt-cache's
indented output. Flatten it, download every package, and chroot the result so a
missing library fails the build instead of the container.
The dev variant of dhi.io/node:26 supplies bash, apt and npm in the build stages;
the production stage is the runtime variant, which has no shell, so the packages
the process needs are unpacked into a rootfs by a tools stage and copied in as
files. Whatever the image runs is now Node plus those exact binaries.
The dev variant is deliberate: the image needs bash for its entrypoint and apt to
install git, gh, bubblewrap and sqlite3 for the pipeline, which the runtime
variant does not carry. CI now logs in to dhi.io to pull the base.