We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The production Docker image runs commands as root.
root
jimodonnell@Jims-MBP-2 front-end-monorepo % docker compose run --rm prod-shell /usr/src # whoami root /usr/src # ps -a PID USER TIME COMMAND 1 root 0:00 /bin/sh 9 root 0:00 ps -a /usr/src #
Run a production bash shell locally, then whoami. A dev image runs commands as node but production is running the Next.js apps as root.
whoami
node
Production deploys should be secured by running the Next.js apps as node, not root.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the bug
The production Docker image runs commands as
root
.To Reproduce
Run a production bash shell locally, then
whoami
. A dev image runs commands asnode
but production is running the Next.js apps asroot
.Expected behavior
Production deploys should be secured by running the Next.js apps as
node
, notroot
.The text was updated successfully, but these errors were encountered: