fix: make non-root support opt-in, keep root as default

Remove USER node directive so existing deployments are unaffected.
The chown ensures --user 1000 works without changing the default behaviour.
This commit is contained in:
Iriome committed 2026-05-01 21:56:40 +01:00
1 parent 49fcab2ee3
commit 53c58eb945
2 files changed
-2

No files matched your search

-1
View File
@@ -44,7 +44,6 @@ RUN chown -R node:node ./public \
&& chown -R node:node ./dist \
&& chown -R node:node ./scripts
USER node
EXPOSE 52345
-1
View File
@@ -31,7 +31,6 @@ RUN chmod +x ./scripts/inject-vars.sh \
&& chown -R node:node ./dist \
&& chown -R node:node ./scripts
USER node
EXPOSE 52345