This is an automated email from the ASF dual-hosted git repository.
baoyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new c394310ca fix(docker): adjust permissions for apisix directory to run
in openshift without anyuid command (#12824)
c394310ca is described below
commit c394310ca021f546408b65543d0183360dbf1a7f
Author: Vishva Prasad <[email protected]>
AuthorDate: Wed Dec 31 11:11:36 2025 +0530
fix(docker): adjust permissions for apisix directory to run in openshift
without anyuid command (#12824)
---
docker/debian-dev/Dockerfile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/docker/debian-dev/Dockerfile b/docker/debian-dev/Dockerfile
index 20447c40a..ae971dff2 100644
--- a/docker/debian-dev/Dockerfile
+++ b/docker/debian-dev/Dockerfile
@@ -58,7 +58,9 @@ COPY --chown=nobody:root ui/ /usr/local/apisix/ui/
COPY ${INSTALL_BROTLI} /install-brotli.sh
RUN chmod +x /install-brotli.sh \
- && cd / && ./install-brotli.sh && rm -rf /install-brotli.sh
+ && cd / && ./install-brotli.sh && rm -rf /install-brotli.sh \
+ && chgrp -R 0 /usr/local/apisix \
+ && chmod -R g=u /usr/local/apisix
ENV
PATH=$PATH:/usr/local/openresty/luajit/bin:/usr/local/openresty/nginx/sbin:/usr/local/openresty/bin