@@ -3,19 +3,25 @@ FROM openresty/openresty:1.27.1.1-alpine-fat@sha256:aa8ea52fa35a296558aed8b392fb
33
44ARG LUA_RESTY_OPENIDC_VERSION="1.7.6"
55
6- HEALTHCHECK CMD ["/usr/ bin/curl " , "-i " , "-s " , "-S" , "-f" , "http://localhost " ]
6+ SHELL ["/bin/bash " , "-euo " , "pipefail " , "-c " ]
77
8- SHELL ["/bin/bash " , "-o " , "pipefail " , "-c " ]
8+ HEALTHCHECK CMD ["/usr/ bin/curl " , "-i " , "-s " , "-S" , "-f" , "http://localhost " ]
99
1010COPY nginx.conf.patch /usr/local/openresty/nginx/conf/
1111
12- # hadolint ignore=DL3018,DL4006
13- RUN apk update \
14- && apk --no-cache add curl patch \
15- && rm -rf /var/cache/apk/* \
16- && /usr/local/openresty/luajit/bin/luarocks install lua-resty-openidc --pin "${LUA_RESTY_OPENIDC_VERSION}" \
17- && patch /usr/local/openresty/nginx/conf/nginx.conf /usr/local/openresty/nginx/conf/nginx.conf.patch \
18- && rm -f /usr/local/openresty/nginx/conf/nginx.conf.patch
12+ # hadolint ignore=DL4006
13+ RUN apk -U upgrade \
14+ && apk add \
15+ curl=8.12.1-r0 \
16+ patch=2.7.6-r10 \
17+ && if [[ $(apk -u list) ]] ; then \
18+ apk -u list ; \
19+ exit 1 ; \
20+ fi \
21+ && rm -rf /var/cache/apk/* \
22+ && /usr/local/openresty/luajit/bin/luarocks install lua-resty-openidc --pin "${LUA_RESTY_OPENIDC_VERSION}" \
23+ && patch /usr/local/openresty/nginx/conf/nginx.conf /usr/local/openresty/nginx/conf/nginx.conf.patch \
24+ && rm -f /usr/local/openresty/nginx/conf/nginx.conf.patch
1925
2026COPY default.conf /etc/nginx/conf.d/
2127
0 commit comments