Skip to content

chore(docker): Update DockerFile to use NVIDIA distroless base image - #29

Merged
nv-mtucciarone merged 1 commit into
mainfrom
mtucciarone/update-dockerfile-to-nvidia-base
Aug 21, 2026
Merged

chore(docker): Update DockerFile to use NVIDIA distroless base image#29
nv-mtucciarone merged 1 commit into
mainfrom
mtucciarone/update-dockerfile-to-nvidia-base

Conversation

@nv-mtucciarone

Copy link
Copy Markdown
Contributor

Summary

  • docker: base image alpine:latestnvcr.io/nvidia/distroless/static:v4.0.0 (OSRB-approved base; required for CCluster container compliance)
  • docker: drop USER 65532:65532 — the distroless base already runs as non-root (nvs, uid 1000)
  • docker: drop curl — installed "for prestop script", but no preStop or lifecycle block exists in this chart, in examples/, or in the platform config that consumes this chart

static is the correct distroless variant: the binary is already built CGO_ENABLED=0 and needs no libc.

Test plan

  • docker build passes
  • Container runs and exits on its own config validation (Failed to load configuration), confirming the static binary executes on distroless

Notes

  • Runtime uid changes 65532 → 1000. The chart sets no runAsUser/fsGroup and mounts only read-only secrets/configmaps (default mode 0644)
  • Base image is publicly pullable — verified with an anonymous docker pull against an empty credential store, so no NGC key is needed in CI
  • Publishing a new image requires a GitHub release; this PR changes the Dockerfile only. Chart version/appVersion (both 1.0.6) intentionally unchanged

@nv-mtucciarone
nv-mtucciarone merged commit 81b371d into main Aug 21, 2026
5 checks passed
@nv-mtucciarone
nv-mtucciarone deleted the mtucciarone/update-dockerfile-to-nvidia-base branch August 21, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants