Skip to content

Commit 8757791

Browse files
committed
Pin apk versions
1 parent c89d939 commit 8757791

File tree

1 file changed

+20
-14
lines changed

1 file changed

+20
-14
lines changed

xml/Dockerfile

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

10-
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
10+
SHELL ["/bin/ash", "-euo", "pipefail", "-c"]
1111

1212
# @TL FIXME: xml2rfc currently only in edge stream
13-
# hadolint ignore=DL3018
14-
RUN apk --update --no-cache add \
15-
html-xml-utils \
16-
libxml2-utils \
17-
libxslt \
18-
maven \
19-
openjdk21-jre-headless \
20-
py3-pip \
21-
xmlindent \
22-
xmlsec \
23-
xmlstarlet \
24-
xmlto \
13+
# hadolint ignore=DL3019
14+
RUN apk -U upgrade \
15+
&& apk add \
16+
html-xml-utils=8.6-r0 \
17+
libxml2-utils=2.13.4-r5 \
18+
libxslt=1.1.42-r1 \
19+
maven=3.9.9-r0 \
20+
openjdk21-jre-headless=21.0.6_p7-r0 \
21+
py3-pip=24.3.1-r0 \
22+
python3=3.12.9-r0 \
23+
xmlindent=0.2.17-r3 \
24+
xmlsec=1.3.7-r0 \
25+
xmlstarlet=1.6.1-r2 \
26+
xmlto=0.0.29-r0 \
27+
&& if apk -u list | grep -q -e . ; then \
28+
apk -u list ; \
29+
exit 1 ; \
30+
fi \
2531
&& rm -rf /var/cache/apk/*
2632

2733
RUN pip3 install --no-cache-dir --upgrade --break-system-packages \
2834
gpxpy==1.6.2 \
2935
tcx2gpx==0.1.5 \
3036
yq==3.4.3 \
31-
&& msg="$(pip3 list --outdated | grep -i -e '^gpxpy ' -e '^tcx2gpx ' -e '^yq ' || true)" \
37+
&& IFS=$'\n\t' msg="$(pip3 list --outdated | grep -i -e '^gpxpy ' -e '^tcx2gpx ' -e '^yq ' || true)" \
3238
&& if [ -n "${msg}" ]; then \
3339
>&2 echo "ERROR: outdated: ${msg}" ; \
3440
exit 1 ; \

0 commit comments

Comments
 (0)