chproxy
chproxy copied to clipboard
[Feature] Need to run image with non-root user
Is your feature request related to a problem? Please describe. For security reason and run image in prod envs needs to run ALWAYS with non-root user
Describe the solution you'd like
Please add in Dockerfile user with permission only to run chproxy binary.
For example:
RUN groupadd -r chrpoxy && useradd -r -g chrpoxy -m chrpoxy && chown -R chrpoxy:chrpoxy /usr/bin/chproxy USER chrpoxy
Additional context
It would be nice in feature release
Hi, the feature makes sense. Feel free to create a PR with a change on the docker image. As long as the image still work for a root user or the optional non-root chproxy user, we shouldn't refuse the PR.