Skip to content

Commit

Permalink
Force Python 3.12 in Debian image (#288)
Browse files Browse the repository at this point in the history
* Force python version 3.12 in debian image

* Update build/docker/debian.Dockerfile

---------

Co-authored-by: Oscar Reimer <[email protected]>
  • Loading branch information
filip-debricked and sweoggy authored Jan 9, 2025
1 parent f607be5 commit 0dc2d4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/docker/debian.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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\
Expand All @@ -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

Expand All @@ -120,7 +120,7 @@ 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 && php -v && composer --version && python3 --version

CMD [ "debricked", "scan" ]

Expand Down

0 comments on commit 0dc2d4a

Please sign in to comment.