Skip to content

Commit b5f9124

Browse files
committed
ci(trivy): disable apk caching
1 parent 7586c4b commit b5f9124

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

img/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ ARG USER_GECOS=Default
1212
SHELL ["/bin/ash", "-euo", "pipefail", "-c"]
1313

1414
# hadolint ignore=DL3019
15-
RUN apk -U upgrade \
16-
&& apk add \
15+
RUN apk upgrade --no-cache \
16+
&& apk add --no-cache \
1717
coreutils=9.7-r1 \
1818
curl=8.14.1-r1 \
1919
exiftool=13.30-r0 \
@@ -22,7 +22,7 @@ RUN apk -U upgrade \
2222
optipng=0.7.8-r0 \
2323
py3-pip=25.1.1-r0 \
2424
python3=3.12.11-r0 \
25-
&& apk cache clean \
25+
&& apk cache --no-cache clean \
2626
&& rm -rf /var/cache/apk/*
2727

2828
RUN adduser \

0 commit comments

Comments
 (0)