From 7f71907d36f53b6a5f61a5644ba911d0a2b5ad6a Mon Sep 17 00:00:00 2001 From: Craig Osterhout Date: Tue, 17 Mar 2026 01:30:17 -0700 Subject: [PATCH] guides: update rust guide (#24386) ## Description The DHI static image has no adduser package, plus it already runs as a nonroot user. Removed that section from the Dockerfile. ## Related issues or tickets Closes #24362 ## Reviews - [ ] Editorial review Signed-off-by: Craig Osterhout --- content/guides/rust/build-images.md | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/content/guides/rust/build-images.md b/content/guides/rust/build-images.md index d35113062a..6b4fe3e7cb 100644 --- a/content/guides/rust/build-images.md +++ b/content/guides/rust/build-images.md @@ -121,18 +121,6 @@ RUN --mount=type=bind,source=src,target=src \ FROM dhi.io/static:20250419 AS final -# Create a non-privileged user that the app will run under. -ARG UID=10001 -RUN adduser \ - --disabled-password \ - --gecos "" \ - --home "/nonexistent" \ - --shell "/sbin/nologin" \ - --no-create-home \ - --uid "${UID}" \ - appuser -USER appuser - # Copy the executable from the "build" stage. COPY --from=build /bin/server /bin/