Skip to content

Commit d5b191b

Browse files
committed
Pin pip versions
1 parent 0d50668 commit d5b191b

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

json/Dockerfile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,16 @@ RUN apk --update --no-cache add \
2222
&& npm install -g prettyjson \
2323
&& npm install -g jwt-cli
2424

25-
# hadolint ignore=DL3013
26-
RUN pip3 install --no-cache-dir --upgrade --break-system-packages json2yaml pyjwt
25+
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
26+
27+
RUN pip3 install --no-cache-dir --upgrade --break-system-packages \
28+
json2yaml==1.2.0 \
29+
PyJWT==2.10.1 \
30+
&& msg="$(pip list --outdated | grep -i -e json2yaml -e PyJWT || true)" \
31+
&& if [ -n "${msg}" ]; then \
32+
>&2 echo "ERROR: outdated: ${msg}" ; \
33+
exit 1 ; \
34+
fi
2735

2836
RUN adduser \
2937
--home "${USER_HOME}" \

0 commit comments

Comments
 (0)