Refactor Dockerfile-openresty to improve readability by grouping commands and adding comments.

This commit is contained in:
2025-06-09 11:12:07 +02:00
parent d699adb63b
commit fa752777c1

View File

@@ -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/*