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 <chris48s@users.noreply.github.com>
This commit is contained in:
rroesch1
2023-02-20 20:22:14 +01:00
committed by GitHub
parent 7f05d1aad9
commit 174b1915c5

View File

@@ -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