Skip to content

Commit c394310

Browse files
authored
fix(docker): adjust permissions for apisix directory to run in openshift without anyuid command (#12824)
1 parent e51bf67 commit c394310

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docker/debian-dev/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ COPY --chown=nobody:root ui/ /usr/local/apisix/ui/
5858

5959
COPY ${INSTALL_BROTLI} /install-brotli.sh
6060
RUN chmod +x /install-brotli.sh \
61-
&& cd / && ./install-brotli.sh && rm -rf /install-brotli.sh
61+
&& cd / && ./install-brotli.sh && rm -rf /install-brotli.sh \
62+
&& chgrp -R 0 /usr/local/apisix \
63+
&& chmod -R g=u /usr/local/apisix
6264

6365
ENV PATH=$PATH:/usr/local/openresty/luajit/bin:/usr/local/openresty/nginx/sbin:/usr/local/openresty/bin
6466

0 commit comments

Comments
 (0)