Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

set system default python3 to python3.8 (#5892)

rob salmond1bcbb1529922
diff --git a/utils/docker/Dockerfile.bionic b/utils/docker/Dockerfile.bionic
index 9c1da7a90f..1cb91f3c22 100644
--- a/utils/docker/Dockerfile.bionic
+++ b/utils/docker/Dockerfile.bionic
@@ -129,7 +129,8 @@ RUN adduser pwuser
RUN apt-get update && apt-get install -y python3.8 python3-pip && \
update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1 && \
- update-alternatives --install /usr/bin/python python /usr/bin/python3 1
+ update-alternatives --install /usr/bin/python python /usr/bin/python3 1 && \
+ update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
# === BAKE BROWSERS INTO IMAGE ===
diff --git a/utils/docker/Dockerfile.focal b/utils/docker/Dockerfile.focal
index 4c387a9bb1..69d2db8ee2 100644
--- a/utils/docker/Dockerfile.focal
+++ b/utils/docker/Dockerfile.focal
@@ -129,7 +129,8 @@ RUN adduser pwuser
RUN apt-get update && apt-get install -y python3.8 python3-pip && \
update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1 && \
- update-alternatives --install /usr/bin/python python /usr/bin/python3 1
+ update-alternatives --install /usr/bin/python python /usr/bin/python3 1 && \
+ update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
# === BAKE BROWSERS INTO IMAGE ===