Skip to content

Commit

Permalink
Force python version 3.12 in debian image
Browse files Browse the repository at this point in the history
  • Loading branch information
filip-debricked committed Jan 9, 2025
1 parent f607be5 commit caf8647
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 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,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" ]

Expand Down

0 comments on commit caf8647

Please sign in to comment.