node-container
Create Node.js Dockerfiles using Optum golden images and the standard multi-stage build pattern. Use when asked to author or update Dockerfiles for Node.js services that must comply with Optum golden image standards.
Node Container (Optum Golden Images)
Use this skill when the user wants a Dockerfile for a Node.js app that must follow Optum golden image standards.
Workflow
- Confirm the app entrypoint, port, build step (if any), and package manager/lockfile.
- Determine the current supported Node image tags before choosing a build and runtime base image.
- Start from the Optum golden images:
- Default floating tags:
- Build stage:
edgeinternal1uhg.optum.com:443/glb-docker-uhg-loc/uhg-goldenimages/node:24-latest-dev - Runtime stage:
edgeinternal1uhg.optum.com:443/glb-docker-uhg-loc/uhg-goldenimages/node:24-latest
- Build stage:
- When you need to pin to the current supported Node major, use the discovery steps below and prefer versioned tags such as
node:24-latest-devandnode:24-latest.
- Default floating tags:
- Use multi-stage build, install deps in builder, run build if needed, then prune dev deps.
- Set
WORKDIR /app, copy app code, and setENV NODE_ENV=production. - Run as the default non-root user in the golden image (avoid
USER root). - Add
EXPOSEandENTRYPOINT/CMDbased on the app’s server. - Optional: add a healthcheck if the service exposes a simple HTTP endpoint.
Find Latest Node Image Version
Use the scripts in scripts/ to inspect the Golden Image Navigator API directly.
- Run
scripts/01-node-product.shto list supported Node versions. - Choose the highest supported concrete version instead of relying on
search=node. - Use the matching concrete image scripts to verify the exact runtime and build tags:
scripts/02-node-image-24-latest.shscripts/03-node-image-24-latest-dev.shscripts/06-node-image-24-slim-latest.shscripts/08-node-image-22-latest.shscripts/09-node-image-22-latest-dev.sh
- Use the floating tag scripts only when you explicitly want the tracked aliases:
scripts/04-node-image-latest.shscripts/05-node-image-latest-dev.sh
- Run
scripts/07-node-image-search.shonly for exploration. It is not precise enough for automation because it also returns other products whose names containnode.
Current API behavior discovered from these scripts:
/api/products/nodereturns supported versions24,22, andlatest.- The highest supported concrete Node version is currently
24. - The concrete tags currently verified are
24-latest,24-latest-dev, and24-slim-latest. - The floating aliases
latestandlatest-devare tracked tags, but they are separate API entries from24-latestand24-latest-dev.
Recommended selection flow:
- Query
/api/products/node. - Pick the highest supported non-
latestversion. - Use
<version>-latestfor runtime and<version>-latest-devfor the build stage. - Use
<version>-slim-latestonly when a slim runtime variant is appropriate.
Template
Use templates/Dockerfile.template as the starting point and adjust:
- files copied into
/app - port and entrypoint
- build step (
npm run build/yarn build/pnpm build) - dependency install command if not using npm
References
../../instructions/docker.instructions.md ../../instructions/optum-golden-containers.instructions.md
Related Assets
golden-container
Create Dockerfiles for any technology using Optum golden images. Covers the Golden Image Navigator API, multi-stage build pattern, tag conventions, and version discovery for every product in the golden image catalog. Use when asked to containerize an application regardless of language or runtime.
Owner: pcorazao
python-container
Create Python Dockerfiles using Optum golden images and the standard multi-stage build pattern. Use when asked to author or update Dockerfiles for Python services that must comply with Optum golden image standards.
Owner: pcorazao

