From 5fe518c1e1d65b91bcb92b6407735a3b78012506 Mon Sep 17 00:00:00 2001 From: lgtm <1gtm@users.noreply.github.com> Date: Wed, 4 Aug 2021 08:51:47 -0700 Subject: [PATCH] [cherry-pick] Use user nobody (#911) /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}"]