Skip to content

Commit 0dc2d4a

Browse files
Force Python 3.12 in Debian image (#288)
* Force python version 3.12 in debian image * Update build/docker/debian.Dockerfile --------- Co-authored-by: Oscar Reimer <[email protected]>
1 parent f607be5 commit 0dc2d4a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build/docker/debian.Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ RUN curl -fsSLO https://dot.net/v1/dotnet-install.sh \
9292

9393
ENV GOLANG_VERSION="1.22"
9494
RUN apt -y update && apt -y upgrade && apt -y install \
95-
python-is-python3 \
9695
ca-certificates && \
9796
apt -y install -t unstable \
9897
python3.12\
@@ -101,7 +100,8 @@ RUN apt -y update && apt -y upgrade && apt -y install \
101100
openjdk-21-jdk && \
102101
apt -y clean && rm -rf /var/lib/apt/lists/* && \
103102
# Symlink go binary to bin directory which is in path
104-
ln -s /usr/lib/go-$GOLANG_VERSION/bin/go /usr/bin/go
103+
ln -s /usr/lib/go-$GOLANG_VERSION/bin/go /usr/bin/go && \
104+
ln -s /usr/bin/python3.12 /usr/bin/python
105105

106106
RUN dotnet --version
107107

@@ -120,7 +120,7 @@ RUN apt -y update && apt -y install \
120120

121121
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
122122

123-
RUN php -v && composer --version
123+
RUN ln -sf /usr/bin/python3.12 /usr/bin/python3 && php -v && composer --version && python3 --version
124124

125125
CMD [ "debricked", "scan" ]
126126

0 commit comments

Comments
 (0)