Skip to content
New issue

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

Running as non root #26

Closed
georgefromohio opened this issue Aug 31, 2022 · 1 comment
Closed

Running as non root #26

georgefromohio opened this issue Aug 31, 2022 · 1 comment

Comments

@georgefromohio
Copy link

If you want to switch the user to another user like octane in the Dockerfile

USER 1000:1000

Then this fails, is there away to run the php() function and the exec supervisord commands in entrypoint.sh as non root?

@georgefromohio
Copy link
Author

Sorted this issue with the following changes

:: /supervd.conf

[supervisord]
nodaemon=true
user=octane
logfile=/var/log/supervisor/supervisord.log
pidfile=/var/run/supervisord.pid

...
..
.

:: /Dockerfile

RUN chown -Rc octane:octane /bin/entrypoint.sh /bin/utilities.sh /var/log/ /var/run/ /etc/supervisor/conf.d/supervd.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant