Refactor Dockerfile-openresty to improve readability by grouping commands and adding comments.
This commit is contained in:
@@ -1,11 +1,16 @@
|
|||||||
FROM openresty/openresty:latest
|
FROM openresty/openresty:latest
|
||||||
|
|
||||||
|
# Install system packages
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
git \
|
git \
|
||||||
curl \
|
curl \
|
||||||
luarocks && \
|
luarocks
|
||||||
luarocks install lua-resty-openidc && \
|
|
||||||
luarocks install lua-resty-session && \
|
# Install Lua packages
|
||||||
luarocks install lua-cjson && \
|
RUN luarocks install lua-resty-openidc
|
||||||
rm -rf /var/lib/apt/lists/*
|
RUN luarocks install lua-resty-session
|
||||||
|
RUN luarocks install lua-cjson
|
||||||
|
|
||||||
|
# Clean up
|
||||||
|
RUN rm -rf /var/lib/apt/lists/*
|
||||||
Reference in New Issue
Block a user