Skip to content

Commit f8d0ed2

Browse files
committed
Pin apk versions
1 parent ddd4d6d commit f8d0ed2

1 file changed

Lines changed: 16 additions & 7 deletions

File tree

pgp-verify-jar/Dockerfile

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,22 @@ ARG USER_HOME=/home/default
77
ARG USER_ID=1000
88
ARG USER_GECOS=Default
99

10-
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
11-
12-
# hadolint ignore=DL3018
13-
RUN apk --update --no-cache add bash curl gnupg \
14-
&& rm -rf /var/cache/apk/* \
15-
# create gpg directory to prevent keyboxd to automagically start, see https://github.com/nodejs/docker-node/pull/1895#issuecomment-1550389150
16-
&& mkdir /root/.gnupg \
10+
SHELL ["/bin/ash", "-euo", "pipefail", "-c"]
11+
12+
# hadolint ignore=DL3019
13+
RUN apk -U upgrade \
14+
&& apk add \
15+
bash=5.2.37-r0 \
16+
curl=8.12.1-r0 \
17+
gnupg=2.4.7-r0 \
18+
&& if apk -u list | grep -q -e . ; then \
19+
apk -u list ; \
20+
exit 1 ; \
21+
fi \
22+
&& rm -rf /var/cache/apk/*
23+
24+
# create gpg directory to prevent keyboxd to automagically start, see https://github.com/nodejs/docker-node/pull/1895#issuecomment-1550389150
25+
RUN mkdir /root/.gnupg \
1726
&& chmod 700 /root/.gnupg \
1827
&& gpg --list-keys \
1928
&& gpgconf --kill all

0 commit comments

Comments
 (0)