Skip to content

Commit 66e60d5

Browse files
committed
build(docker): avoid running command twice
1 parent 076beae commit 66e60d5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

openid-connect-provider-debugger/Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ RUN apk -U upgrade \
1414
&& apk add \
1515
curl=8.12.1-r1 \
1616
patch=2.7.6-r10 \
17-
&& if apk -u list | grep -q -e . ; then \
18-
apk -u list ; \
17+
&& if apk -u list | tee -a /dev/stderr | grep -q -e . ; then \
1918
exit 1 ; \
2019
fi \
2120
&& apk cache clean \
@@ -27,8 +26,7 @@ RUN if [ -z "${LUA_RESTY_OPENIDC_VERSION}" ]; then \
2726
else \
2827
luarocks install lua-resty-openidc --pin "${LUA_RESTY_OPENIDC_VERSION}" ; \
2928
fi \
30-
&& if luarocks list --outdated | grep -q -e '^lua-resty-openidc$' ; then \
31-
luarocks list --outdated ; \
29+
&& if luarocks list --outdated | tee -a /dev/stderr | grep -q -e '^lua-resty-openidc$' ; then \
3230
exit 1 ; \
3331
fi
3432

0 commit comments

Comments
 (0)