Skip to content

Commit

Permalink
fix(ownership): change Kong permissions to be kong:root
Browse files Browse the repository at this point in the history
  • Loading branch information
hutchic committed Mar 1, 2022
1 parent c32a80c commit 693310d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,17 @@ RUN set -eux; \
apk upgrade; \
fi; \
mkdir /kong \
&& addgroup -S kong \
&& adduser -S -G kong kong \
&& tar -C /kong -xzf /tmp/kong.tar.gz \
&& chown -R root:kong /kong \
&& chmod -R g=u /kong \
&& mv /kong/usr/local/* /usr/local \
&& mv /kong/etc/* /etc \
&& rm -rf /kong \
&& rm -rf /tmp/kong.tar.gz \
&& apk add --no-cache libstdc++ libgcc openssl pcre perl tzdata libcap zip bash zlib zlib-dev git ca-certificates \
&& adduser -S kong \
&& addgroup -S kong \
&& mkdir -p "/usr/local/kong" \
&& chown -R kong:0 /usr/local/kong \
&& chown kong:0 /usr/local/bin/kong \
&& chmod -R g=u /usr/local/kong \
&& rm -rf /tmp/kong.tar.gz \
&& ln -s /usr/local/openresty/bin/resty /usr/local/bin/resty \
&& ln -s /usr/local/openresty/luajit/bin/luajit /usr/local/bin/luajit \
&& ln -s /usr/local/openresty/luajit/bin/luajit /usr/local/bin/lua \
Expand Down

0 comments on commit 693310d

Please sign in to comment.