AlinsRan commented on code in PR #617:
URL: https://github.com/apache/apisix-docker/pull/617#discussion_r3048887213
##########
debian/Dockerfile:
##########
@@ -53,7 +53,9 @@ ENV
PATH=$PATH:/usr/local/openresty/luajit/bin:/usr/local/openresty/nginx/sbin:/
RUN groupadd --system --gid 636 apisix \
&& useradd --system --gid apisix --no-create-home --shell
/usr/sbin/nologin --uid 636 apisix \
- && chown -R apisix:apisix /usr/local/apisix
+ && chown -R apisix:apisix /usr/local/apisix \
+ && chgrp -R 0 /usr/local/apisix \
Review Comment:
The original two commands:
1. `chown -R apisix:apisix /usr/local/apisix` sets the user to `apisix` and
the group to `apisix`.
2. `chgrp -R 0 /usr/local/apisix` changes the group to `0` (root).
The combined command `chown -R apisix:0` achieves the **exact same result**
in one step: owner `apisix`, group `0`. It's cleaner and equivalent.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]