-
-
Notifications
You must be signed in to change notification settings - Fork 743
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
Reworked adding non-root user to docker images. #1052
base: main
Are you sure you want to change the base?
Reworked adding non-root user to docker images. #1052
Conversation
I put notes in the original issue as to what I did to fix the issue. The short version is that i had to use the full path to the "adduser" program. |
Still fails
|
Wow... not sure what I missed. It worked when I ran the make on my PC (Linux). I'll check and see if there was some way I was not using qemu to build and run the armv6 image properly. |
shouldn't https://docs.docker.com/develop/develop-images/instructions/#user |
There is also a Dockerfile Best Practice saying:
From https://github.com/hexops/dockerfile?tab=readme-ov-file#do-not-use-a-uid-below-10000 Discussion on that https://news.ycombinator.com/item?id=25621610 |
I am not forcing that on the users at this time. I am merely adding this user to give them the option. You can force the container to run as a specific user once that user exists. |
ba8cd4f
to
41ca76c
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #1052 +/- ##
=======================================
Coverage 64.80% 64.80%
=======================================
Files 61 61
Lines 7983 7983
=======================================
Hits 5173 5173
Misses 1944 1944
Partials 866 866 ☔ View full report in Codecov by Sentry. |
…ility to run ntfy as a non-root user. fixes binwiederhier#966
41ca76c
to
5d2351a
Compare
…ild issue locally on ubuntu 22.04 based server.
This gives you the ability to run ntfy as a non-root user. fixes #966