From 04cc790556b3162d960b6aafb89c6ba8d62b9573 Mon Sep 17 00:00:00 2001 From: lgtm <1gtm@users.noreply.github.com> Date: Wed, 4 Aug 2021 08:54:34 -0700 Subject: [PATCH] [cherry-pick] Use user nobody (#915) /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 26f84fbcf..508a5eb36 100644 --- a/Dockerfile.in +++ b/Dockerfile.in @@ -41,5 +41,6 @@ RUN npm config set unsafe-perm true \ COPY --from=0 /restic /bin/restic COPY bin/{ARG_OS}_{ARG_ARCH}/{ARG_BIN} /{ARG_BIN} +USER nobody ENTRYPOINT ["/{ARG_BIN}"]