Modifying contain to user USER 1000 instead of USER node to remove error when PSP is enabled

This commit is contained in:
Eric Herbrandson
2020-05-07 15:29:14 -05:00
parent 65fe59bfd7
commit d5e6fa7d03
+4 -1
View File
@@ -22,6 +22,9 @@ RUN npm i --production
COPY --from=build-deps /usr/src/app/build /usr/src/app/public
COPY /server ./
USER node
# USER 1000 is the "node" user
# This is to avoid the "container has runAsNonRoot and image has non-numeric user (node), cannot verify user is non-root"
# in clusters with PSP enabled
USER 1000
ENTRYPOINT ["/sbin/tini", "--", "node", "."]