Skip to content

Commit bc4f777

Browse files
committed
Pin apk versions
1 parent 8d0b3ca commit bc4f777

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

json/Dockerfile

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,21 @@ ARG USER_HOME=/home/default
99
ARG USER_ID=1000
1010
ARG USER_GECOS=Default
1111

12-
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
13-
14-
# hadolint ignore=DL3018
15-
RUN apk --update --no-cache add \
16-
jose \
17-
jq \
18-
npm \
19-
openssl \
20-
py3-pip \
12+
SHELL ["/bin/ash", "-euo", "pipefail", "-c"]
13+
14+
# hadolint ignore=DL3019
15+
RUN apk -U upgrade \
16+
&& apk add \
17+
jose=13-r0 \
18+
jq=1.7.1-r0 \
19+
npm=10.9.1-r0 \
20+
openssl=3.3.3-r0 \
21+
py3-pip=24.3.1-r0 \
22+
python3=3.12.9-r0 \
23+
&& if apk -u list | grep -q -e . ; then \
24+
apk -u list ; \
25+
exit 1 ; \
26+
fi \
2127
&& rm -rf /var/cache/apk/*
2228

2329
RUN pip3 install --no-cache-dir --upgrade --break-system-packages \

0 commit comments

Comments
 (0)