From 174b1915c5cb44da528a9e885380deddc8418917 Mon Sep 17 00:00:00 2001 From: rroesch1 <92152452+rroesch1@users.noreply.github.com> Date: Mon, 20 Feb 2023 20:22:14 +0100 Subject: [PATCH] fix: Set uid/gid in docker image to 0 (#8908) * UIDs/GIDs in the docker image are messed up due to strange UIDs/GIDs in tarballs from the npm registry * This change overrides the UID/GID of all files in `/usr/src/app` fixes: badges/shields#8906 Co-authored-by: chris48s --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7b35095d51..832bf81132 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,7 +30,7 @@ LABEL fly.version=$version ENV NODE_ENV production WORKDIR /usr/src/app -COPY --from=Builder /usr/src/app /usr/src/app +COPY --from=Builder --chown=0:0 /usr/src/app /usr/src/app CMD node server