Skip to content

Commit c67a5bd

Browse files
authored
fix: install libnsl2 with deps (#13)
1 parent 184b239 commit c67a5bd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

web-build/Dockerfile.python2

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
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/
33
ARG TARGETARCH
44
RUN 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

0 commit comments

Comments
 (0)