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:
1 parent
49fcab2ee3
commit
53c58eb945
2 files changed
-2
No files matched your search
@@ -44,7 +44,6 @@ RUN chown -R node:node ./public \
|
|||||||
&& chown -R node:node ./dist \
|
&& chown -R node:node ./dist \
|
||||||
&& chown -R node:node ./scripts
|
&& chown -R node:node ./scripts
|
||||||
|
|
||||||
USER node
|
|
||||||
|
|
||||||
EXPOSE 52345
|
EXPOSE 52345
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ RUN chmod +x ./scripts/inject-vars.sh \
|
|||||||
&& chown -R node:node ./dist \
|
&& chown -R node:node ./dist \
|
||||||
&& chown -R node:node ./scripts
|
&& chown -R node:node ./scripts
|
||||||
|
|
||||||
USER node
|
|
||||||
|
|
||||||
EXPOSE 52345
|
EXPOSE 52345
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user