Closed MPParsley closed 2 years ago
Thanks for this @MPParsley!
Since the CI here doesn't build the Dockerfile, can you confirm that it builds+runs ok on your end?
@rubensworks, added the nginx user. This required removing the user statement from the default nginx config so it has been added here as well.
nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:2
This allows further configuration of nginx.
Alternatively, we could strip it out from the default config:
sed -i '/^user/d' /etc/nginx/nginx.conf
I can confirm this has been tested (build+run).
@rubensworks, opened a PR with the other approach in #131. Both have been tested.
Thanks so much for this @MPParsley!
Fixes #129.
Still requires nginx to run as non-root. See https://www.rockyourcode.com/run-docker-nginx-as-non-root-user/