mirror of
https://github.com/skooner-k8s/skooner.git
synced 2026-08-24 04:16:18 +00:00
Modifying contain to user USER 1000 instead of USER node to remove error when PSP is enabled
This commit is contained in:
+4
-1
@@ -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", "."]
|
||||
|
||||
Reference in New Issue
Block a user