From 8a8d96e74012b86bd8c195bcd1b952392beb3944 Mon Sep 17 00:00:00 2001 From: lgtm <1gtm@users.noreply.github.com> Date: Wed, 4 Aug 2021 08:44:55 -0700 Subject: [PATCH] [cherry-pick] Use user nobody (#1114) /cherry-pick Signed-off-by: Tamal Saha Co-authored-by: Tamal Saha --- Dockerfile.in | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile.in b/Dockerfile.in index 8c0eb0b66..3f9431ebe 100644 --- a/Dockerfile.in +++ b/Dockerfile.in @@ -35,5 +35,6 @@ LABEL org.opencontainers.image.source https://github.com/stashed/mongodb COPY --from=0 /restic /bin/restic COPY bin/{ARG_OS}_{ARG_ARCH}/{ARG_BIN} /{ARG_BIN} +USER nobody ENTRYPOINT ["/{ARG_BIN}"]