Skip to content

Commit 1bcbb15

Browse files
authored
set system default python3 to python3.8 (#5892)
1 parent 2064d27 commit 1bcbb15

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

utils/docker/Dockerfile.bionic

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ RUN adduser pwuser
129129

130130
RUN apt-get update && apt-get install -y python3.8 python3-pip && \
131131
update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1 && \
132-
update-alternatives --install /usr/bin/python python /usr/bin/python3 1
132+
update-alternatives --install /usr/bin/python python /usr/bin/python3 1 && \
133+
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
133134

134135
# === BAKE BROWSERS INTO IMAGE ===
135136

utils/docker/Dockerfile.focal

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ RUN adduser pwuser
129129

130130
RUN apt-get update && apt-get install -y python3.8 python3-pip && \
131131
update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1 && \
132-
update-alternatives --install /usr/bin/python python /usr/bin/python3 1
132+
update-alternatives --install /usr/bin/python python /usr/bin/python3 1 && \
133+
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
133134

134135
# === BAKE BROWSERS INTO IMAGE ===
135136

0 commit comments

Comments
 (0)