Skip to content

Commit c77eca7

Browse files
committed
build(docker): avoid running command twice
1 parent 8bce787 commit c77eca7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

qrcode/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ RUN apk -U upgrade \
2020
libqrencode-tools=4.1.1-r3 \
2121
py3-pip=25.1.1-r0 \
2222
python3=3.12.11-r0 \
23-
&& if apk -u list | grep -q -e . ; then \
24-
apk -u list ; \
23+
&& if apk -u list | tee -a /dev/stderr | grep -q -e . ; then \
2524
exit 1 ; \
2625
fi \
2726
&& apk cache clean \

0 commit comments

Comments
 (0)