-
Notifications
You must be signed in to change notification settings - Fork 130
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
Use upstream NGINX image #23
Conversation
Signed-off-by: Tommy <[email protected]>
eef4361
to
f41eb8b
Compare
Yes, I came here wanting to mention this too. Speaking of attack surfaces: there are two flavours of nginx docker images published by nginxinc themselves, with or without root. The ones which runs without root could also be a possibility: |
I run some Nginx as proxies, and I have them running with the filesystem in read-only and the config in tmpfs, in this case, since they're a shared volume, wouldn't be better to have them in |
I think this project needs to user the Dockerfile build methods and can't just switch to So #28 looks like the correct path for updating the nginx version. |
@abscondment, sorry, not sure to understand:
The modules are already present in the alpine image:
|
With that excellent one-liner, I can also confirm that also the rootless image contains the required modules:
|
Cool! TIL how alpine builds nginx :) |
Do you have a working config for the rootless container? I have the root container working with privileges dropped and what not, but I couldn't get the rootless one working. I could try again though when I have time, though it would be nice if someone has a working config ready. |
I was about to file a bug to do exactly what this PR does. The current state of having the nginx versions hardcoded in the source code is difficult to maintain and leads to security bugs. Using +1 to merge this. |
Signed-off-by: Tommy <[email protected]>
Thanks for the work and discussion here! We moved over to the latest nginx-alpine image in #45 |
The current images are 2 years out of date, and if it's too much work to track the releases I'd suggest just using the upstream image. Using alpine as the base OS will also help reduce the attack surface as well.
This PR includes the changes in my previous PR #22.