fix: create python symlink for Ubuntu cross-version compat
Docker Build and Push / lint (pull_request) Successful in 7s
Docker Build and Push / build (pull_request) Successful in 1m31s
Docker Build and Push / test (pull_request) Successful in 19s
Docker Build and Push / push (pull_request) Has been skipped

Replace 'python' package (Python 2, removed in Ubuntu 24.04+)
with a simple 'ln -sf python3 python' symlink that works on
all Ubuntu versions.
This commit is contained in:
Sagent
2026-06-11 00:53:49 +00:00
parent 0be44f9135
commit cb34cae943
+2 -1
View File
@@ -4,9 +4,10 @@ LABEL maintainer="Julien Cabillot <dockerimages@cabillot.eu>"
# 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} && \