From 0be44f91357fa638fa42e8b47387598e486cc37b Mon Sep 17 00:00:00 2001 From: Sagent Date: Thu, 11 Jun 2026 00:49:55 +0000 Subject: [PATCH 1/2] fix: remove python2 dependency for Ubuntu 26.04+ compatibility Ubuntu 26.04 no longer provides the 'python' package (Python 2). Replace with python-is-python3 which creates the symlink for scripts using '#!/usr/bin/env python'. Keep python3 for runtime. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ac3167a..5bfcb7b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ LABEL maintainer="Julien Cabillot " # hadolint ignore=DL3008,SC3009,SC2086 RUN export DEBIAN_FRONTEND=noninteractive && \ export BUILD_PACKAGES=git-core && \ - export RUNTIME_PACKAGES="python python3 bsdmainutils curl python3-six ca-certificates" && \ + export RUNTIME_PACKAGES="python3 python-is-python3 bsdmainutils curl python3-six ca-certificates" && \ apt-get -qq update && \ apt-get -qq --no-install-recommends --yes install ${BUILD_PACKAGES} ${RUNTIME_PACKAGES} && \ git clone https://github.com/jvehent/cipherscan.git && \ From cb34cae943174fd4ccd41384ca810382a4496b35 Mon Sep 17 00:00:00 2001 From: Sagent Date: Thu, 11 Jun 2026 00:53:49 +0000 Subject: [PATCH 2/2] fix: create python symlink for Ubuntu cross-version compat Replace 'python' package (Python 2, removed in Ubuntu 24.04+) with a simple 'ln -sf python3 python' symlink that works on all Ubuntu versions. --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5bfcb7b..70c489a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,9 +4,10 @@ LABEL maintainer="Julien Cabillot " # hadolint ignore=DL3008,SC3009,SC2086 RUN export DEBIAN_FRONTEND=noninteractive && \ export BUILD_PACKAGES=git-core && \ - export RUNTIME_PACKAGES="python3 python-is-python3 bsdmainutils curl python3-six ca-certificates" && \ + export RUNTIME_PACKAGES="python3 bsdmainutils curl python3-six ca-certificates" && \ apt-get -qq update && \ apt-get -qq --no-install-recommends --yes install ${BUILD_PACKAGES} ${RUNTIME_PACKAGES} && \ + ln -sf /usr/bin/python3 /usr/bin/python && \ git clone https://github.com/jvehent/cipherscan.git && \ /cipherscan/cscan.sh -l && \ apt-get -qq --yes remove --purge ${BUILD_PACKAGES} && \