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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user