We run a small internal tool a custom MCP server, the kind of thing more teams are now standing up to give AI agents access to internal systems like GitHub or Slack. It runs as a container, same as everything else. We hadn’t scrutinized its base image the way we would a customer-facing service, mostly because it never occurred to us that it needed the same level of attention. So we migrated it from a standard base image to a hardened one and measured what actually changed, rather than assuming the usual advice about “minimal images” applied here the way it does everywhere else.
How we measured it
Both builds used the same application source and declared dependencies ( package.json , src/ ); the runtime base changed from Debian-based Node ( node:24-trixie-slim ) to Alpine-based Docker Hardened Images ( dhi.io/node:24-alpine3.23 ), built via a multi-stage Dockerfile with a -dev variant for the build stage.…