From fa752777c1123c859ffb851c72e130a827f3200d Mon Sep 17 00:00:00 2001 From: Thatsaphorn Atchariyaphap Date: Mon, 9 Jun 2025 11:12:07 +0200 Subject: [PATCH] Refactor `Dockerfile-openresty` to improve readability by grouping commands and adding comments. --- Dockerfile-openresty | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Dockerfile-openresty b/Dockerfile-openresty index aba9144..52ad1b2 100644 --- a/Dockerfile-openresty +++ b/Dockerfile-openresty @@ -1,11 +1,16 @@ FROM openresty/openresty:latest +# Install system packages RUN apt-get update && \ apt-get install -y --no-install-recommends \ git \ curl \ - luarocks && \ - luarocks install lua-resty-openidc && \ - luarocks install lua-resty-session && \ - luarocks install lua-cjson && \ - rm -rf /var/lib/apt/lists/* + luarocks + +# Install Lua packages +RUN luarocks install lua-resty-openidc +RUN luarocks install lua-resty-session +RUN luarocks install lua-cjson + +# Clean up +RUN rm -rf /var/lib/apt/lists/* \ No newline at end of file