From caf8647eac199b3180fbfd7ec8ebbacb1facc5e8 Mon Sep 17 00:00:00 2001 From: filip Date: Thu, 9 Jan 2025 11:45:43 +0100 Subject: [PATCH] Force python version 3.12 in debian image --- build/docker/debian.Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build/docker/debian.Dockerfile b/build/docker/debian.Dockerfile index 44f19c94..96801f79 100644 --- a/build/docker/debian.Dockerfile +++ b/build/docker/debian.Dockerfile @@ -92,7 +92,6 @@ RUN curl -fsSLO https://dot.net/v1/dotnet-install.sh \ ENV GOLANG_VERSION="1.22" RUN apt -y update && apt -y upgrade && apt -y install \ - python-is-python3 \ ca-certificates && \ apt -y install -t unstable \ python3.12\ @@ -101,7 +100,8 @@ RUN apt -y update && apt -y upgrade && apt -y install \ openjdk-21-jdk && \ apt -y clean && rm -rf /var/lib/apt/lists/* && \ # Symlink go binary to bin directory which is in path - ln -s /usr/lib/go-$GOLANG_VERSION/bin/go /usr/bin/go + ln -s /usr/lib/go-$GOLANG_VERSION/bin/go /usr/bin/go && \ + ln -s /usr/bin/python3.12 /usr/bin/python RUN dotnet --version @@ -120,7 +120,9 @@ RUN apt -y update && apt -y install \ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer -RUN php -v && composer --version +RUN ln -sf /usr/bin/python3.12 /usr/bin/python3 + +RUN php -v && composer --version && python3 --version CMD [ "debricked", "scan" ]