fix: remove python2 dependency for Ubuntu 26.04+ compatibility
Docker Build and Push / lint (pull_request) Successful in 6s
Docker Build and Push / build (pull_request) Failing after 19s
Docker Build and Push / test (pull_request) Has been skipped
Docker Build and Push / push (pull_request) Has been skipped

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.
This commit is contained in:
Sagent
2026-06-11 00:49:55 +00:00
parent 6673e95f7c
commit 0be44f9135
+1 -1
View File
@@ -4,7 +4,7 @@ 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="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 && \