File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 11#ddev-generated
2- # Adapted from https://www.fadedbee.com/2024/01/18/installing-python2-on-debian-12-bookworm/
2+ # Adapted from https://web.archive.org/web/20250223192706/https:// www.fadedbee.com/2024/01/18/installing-python2-on-debian-12-bookworm/
33ARG TARGETARCH
44RUN mkdir -p /tmp/python2 && \
5- wget -O /tmp/python2/python2.7.tar.gz https://github.com/stasadev/ddev-python2/releases/download/v1.0.0 /python2.7_${TARGETARCH}.tar.gz && \
5+ wget -O /tmp/python2/python2.7.tar.gz https://github.com/stasadev/ddev-python2/releases/download/v1.0.1 /python2.7_${TARGETARCH}.tar.gz && \
66 tar -xzf /tmp/python2/python2.7.tar.gz -C /tmp/python2 && \
7+ source /etc/os-release && \
8+ if [ "$VERSION_CODENAME" = "bookworm" ]; then rm -f /tmp/python2/libnsl2*.deb /tmp/python2/libtirpc3t64*.deb; fi && \
79 dpkg -i /tmp/python2/*.deb && \
810 rm -rf /tmp/python2 && \
911 ln -s /usr/bin/python2.7 /usr/local/bin/python
You can’t perform that action at this time.
0 commit comments