Skip to content

Commit 3242eee

Browse files
committed
Pin pip versions
1 parent 098a4f0 commit 3242eee

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

aws-cli/Dockerfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,16 @@ RUN yum update -y \
1212
&& yum clean all \
1313
&& rm -rf /var/cache/yum
1414

15+
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
16+
1517
# @TL FIXME: --break-system-packages not supported until Python 3.11
16-
# hadolint ignore=DL3013
17-
RUN pip3 install --no-cache-dir --upgrade cfn-policy-validator
18+
RUN pip3 install --no-cache-dir --upgrade \
19+
cfn-policy-validator==0.0.35 \
20+
&& msg="$(pip list --outdated | grep -i -e cfn-policy-validator || true)" \
21+
&& if [ -n "${msg}" ]; then \
22+
>&2 echo "ERROR: outdated: ${msg}" ; \
23+
exit 1 ; \
24+
fi
1825

1926
RUN mkdir -p /opt \
2027
&& chmod 777 /opt \

0 commit comments

Comments
 (0)