From ffe3a0261a4fbb3f735b126c572a506cbf997f46 Mon Sep 17 00:00:00 2001 From: d3v-null Date: Wed, 12 Feb 2025 05:57:01 +0000 Subject: [PATCH] support for non-python-based images --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 8cf604a..fce134a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,6 +40,8 @@ RUN apt-get update && \ libxml2-dev \ pkg-config \ procps \ + python3 \ + python3-pip \ tzdata \ unzip \ vim \ @@ -52,6 +54,9 @@ RUN apt-get update && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \ apt-get -y autoremove +# if the python command does not exist, use python3 as the default +RUN command -v python || update-alternatives --install /usr/bin/python python /usr/bin/python3 1 + # install giant-squid RUN cargo install mwa_giant_squid --locked && \ cargo clean && \