No description
  • Dockerfile 100%
Find a file
Anirban Mukhopadhyay c1c7921b59
Merge pull request #12 from anirbanmu/tags
tag with more specific versions too (and run publish.yml on PRs witho…
2026-01-03 10:03:45 +05:30
.github/workflows tag with more specific versions too (and run publish.yml on PRs without push) 2026-01-02 23:31:07 -05:00
Dockerfile image push to ghcr 2025-12-31 14:02:07 -05:00
LICENSE Initial commit 2025-12-31 12:24:50 -05:00
README.md readme badges 2025-12-31 15:10:22 -05:00

distroless-node

Verify Publish License

distroless images for node.js current (non-LTS) versions, starting with node 25. based on gcr.io/distroless/cc-debian13 (trixie).

architecture: amd64, arm64 (apple silicon compatible).

what's inside

  • node.js (v25)
  • libatomic.so.1
  • no shell, no npm/yarn/pnpm.

usage

use multi-stage builds. build with a standard image, run with this one.

# build stage
FROM node:25-trixie AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci --omit=dev
COPY . .

# runtime
FROM ghcr.io/anirbanmu/distroless-node:25
WORKDIR /app
COPY --from=build /app /app
CMD ["/app/index.js"]

dev

build locally:

docker build --build-arg NODE_VERSION=25 -t my-node-image .