NodeJS distroless docker images built with Canonical's Chisel.
10K+
Distroless Node.js Docker Images Built with Canonical's Chisel
nodejs-distroless provides ultra-minimal, production-ready Docker images for running Node.js applications. These images are built using Canonical's Chisel and inspired by Google's distroless approach, resulting in containers that contain only Node.js and its essential runtime libraries—no shell, no package manager, and no unnecessary OS files. This dramatically reduces image size and attack surface, making deployments faster and more secure.
These images are intended for running pre-built Node.js applications. You should use a multi-stage Docker build:
node_modules into the distroless image for runtime.Example Dockerfile:
# Build stage
FROM node:22 AS build
WORKDIR /app
COPY . .
RUN npm ci --omit=dev
# Production stage
FROM nvitaterna/nodejs-distroless:22
WORKDIR /home/node/app
COPY --from=build /app /home/node/app
CMD ["index.js"]
Replace index.js with your app's entry point.
Notes:
node. This does not run as root. You do not need to switch users in your Dockerfile.npm or npx—all dependencies must be installed at build time and copied into the image.Contact:
For questions or support, open an issue on the GitHub repository.
Content type
Image
Digest
sha256:74619f2c9…
Size
50.6 MB
Last updated
3 months ago
docker pull nvitaterna/nodejs-distroless