Skip to content

Commit

Permalink
fix(Dockerfile): install luarocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Water-Melon committed Jun 25, 2024
1 parent f232d94 commit 71c9915
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion Dockerfile.deb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ RUN set -ex; \
&& echo "${KONG_SHA256} /tmp/kong.deb" | sha256sum -c -; \
fi \
&& apt-get update \
&& apt-get install --yes /tmp/kong.deb \
&& apt-get install --yes /tmp/kong.deb lua5.1 liblua5.1-dev unzip make \
&& curl -L https://luarocks.org/releases/luarocks-3.8.0.tar.gz -o luarocks-3.8.0.tar.gz \
&& tar zxpf luarocks-3.8.0.tar.gz \
&& cd luarocks-3.8.0 \
&& ./configure && make && make install \
&& export PATH=$PATH:/usr/local/bin/luarocks \
&& cd - \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/kong.deb \
&& chown kong:0 /usr/local/bin/kong \
Expand Down
2 changes: 1 addition & 1 deletion ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ RUN set -ex; \
# Please update the ubuntu install docs if the below line is changed so that
# end users can properly install Kong along with its required dependencies
# and that our CI does not diverge from our docs.
&& apt install --yes /tmp/kong.deb \
&& apt install --yes /tmp/kong.deb luarocks\
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/kong.deb \
&& chown kong:0 /usr/local/bin/kong \
Expand Down

0 comments on commit 71c9915

Please sign in to comment.