Skip to content

Commit 1f520bd

Browse files
committed
ver: Update latest Dockerfile
1 parent 0b66e08 commit 1f520bd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎ver/latest.Dockerfile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ RUN apt-get update \
6464
unzip \
6565
zip \
6666
zlib1g-dev \
67-
&& if [ "${BASE_IMAGE}" = "debian:13" ] || [ "${BASE_IMAGE}" = "ubuntu:26.04" ]; then \
67+
&& if ([ "${BASE_IMAGE%:*}" = "debian" ] && dpkg --compare-versions "${BASE_IMAGE#*:}" ge "13") \
68+
|| ([ "${BASE_IMAGE%:*}" = "ubuntu" ] && dpkg --compare-versions "${BASE_IMAGE#*:}" ge "26"); then \
6869
apt-get install -y --no-install-recommends libmpdec-dev; \
6970
fi \
7071
&& if [ -z "$PYTHON_VERSION" ]; then \

0 commit comments

Comments
 (0)