Skip to content

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

chore: remove Python from main Docker image (#12431)

Max Schmitt372a3219f33f
diff --git a/utils/docker/Dockerfile.bionic b/utils/docker/Dockerfile.bionic
index 0ef4ace7ee..bbb8f9bce5 100644
--- a/utils/docker/Dockerfile.bionic
+++ b/utils/docker/Dockerfile.bionic
@@ -13,11 +13,6 @@ RUN apt-get update && \
# Feature-parity with node.js base images.
apt-get install -y --no-install-recommends git openssh-client && \
npm install -g yarn && \
- # Install Python 3.8
- 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/python3 python3 /usr/bin/python3.8 1 && \
# clean apt cache
rm -rf /var/lib/apt/lists/* && \
# Create the pwuser (we internally create a symlink for the pwuser and the root user)
diff --git a/utils/docker/Dockerfile.focal b/utils/docker/Dockerfile.focal
index 4bd08f54b7..0e4b7af89b 100644
--- a/utils/docker/Dockerfile.focal
+++ b/utils/docker/Dockerfile.focal
@@ -13,11 +13,6 @@ RUN apt-get update && \
# Feature-parity with node.js base images.
apt-get install -y --no-install-recommends git openssh-client && \
npm install -g yarn && \
- # Install Python 3.8
- 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/python3 python3 /usr/bin/python3.8 1 && \
# clean apt cache
rm -rf /var/lib/apt/lists/* && \
# Create the pwuser