We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d50668 commit d5b191bCopy full SHA for d5b191b
json/Dockerfile
@@ -22,8 +22,16 @@ RUN apk --update --no-cache add \
22
&& npm install -g prettyjson \
23
&& npm install -g jwt-cli
24
25
-# hadolint ignore=DL3013
26
-RUN pip3 install --no-cache-dir --upgrade --break-system-packages json2yaml pyjwt
+SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
+
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
35
36
RUN adduser \
37
--home "${USER_HOME}" \
0 commit comments