diff --git a/build/docker/debian.Dockerfile b/build/docker/debian.Dockerfile index 8fff0b02..62e7648c 100644 --- a/build/docker/debian.Dockerfile +++ b/build/docker/debian.Dockerfile @@ -92,20 +92,22 @@ 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 \ - python3 \ - python3-venv \ - ca-certificates \ - python3-pip && \ + python3.12\ + python3.12-venv \ + python-is-python3 \ + ca-certificates && \ apt -y install -t unstable \ golang-$GOLANG_VERSION \ openjdk-21-jre && \ apt -y clean && rm -rf /var/lib/apt/lists/* && \ - # Symlink pip3 to pip, we assume that "pip" works in CLI - ln -sf /usr/bin/pip3 /usr/bin/pip && \ - ln -sf /usr/bin/python3 /usr/bin/python && \ # Symlink go binary to bin directory which is in path ln -s /usr/lib/go-$GOLANG_VERSION/bin/go /usr/bin/go +RUN ln -s /usr/local/bin/python3.12 /usr/local/bin/python + +RUN python --version +RUN pip list + RUN dotnet --version RUN apt update -y && \ @@ -125,6 +127,9 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin - RUN php -v && composer --version +RUN which python +RUN apt list --installed + CMD [ "debricked", "scan" ] # Put copy at the end to speedup Docker build by caching previous RUNs and run those concurrently