Skip to content

Commit 0a87541

Browse files
committed
Handle unset LUA_RESTY_OPENIDC_VERSION in Dockerfile
Updated the Dockerfile to install lua-resty-openidc without pinning if LUA_RESTY_OPENIDC_VERSION is unset, improving build flexibility and compatibility.
1 parent 49c5a17 commit 0a87541

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

openid-connect-provider-debugger/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ RUN apk -U upgrade \
2222
&& rm -rf /var/cache/apk/*
2323

2424
# We let lua-resty-session get pulled transitively to ensure compatibility
25-
RUN luarocks install lua-resty-openidc --pin "${LUA_RESTY_OPENIDC_VERSION}" \
25+
RUN if [ -z "${LUA_RESTY_OPENIDC_VERSION}" ]; then \
26+
luarocks install lua-resty-openidc ; \
27+
else \
28+
luarocks install lua-resty-openidc --pin "${LUA_RESTY_OPENIDC_VERSION}" ; \
29+
fi \
2630
&& if luarocks list --outdated | grep -q -e '^lua-resty-openidc$' ; then \
2731
luarocks list --outdated ; \
2832
exit 1 ; \

0 commit comments

Comments
 (0)