Skip to content

Commit

Permalink
fix things
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed Aug 13, 2024
1 parent d99b5fa commit d1876f5
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions utils/docker/Dockerfile.noble
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@ ARG DOCKER_IMAGE_NAME_TEMPLATE="mcr.microsoft.com/playwright/python:v%version%-n

RUN apt-get update && \
# Install Python
apt-get install -y python3 python3-pip python3-virtualenv curl && \
apt-get install -y python3 curl && \
# Align with upstream Python image and don't be externally managed:
# https://github.com/docker-library/python/issues/948
rm /usr/lib/python3.12/EXTERNALLY-MANAGED && \
update-alternatives --install /usr/bin/python python /usr/bin/python3 1 && \
curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
python get-pip.py && \
rm get-pip.py && \
# Feature-parity with node.js base images.
apt-get install -y --no-install-recommends git openssh-client gpg && \
# clean apt cache
Expand All @@ -32,7 +38,8 @@ COPY ./dist/*-manylinux*.whl /tmp/
RUN mkdir /ms-playwright && \
mkdir /ms-playwright-agent && \
cd /ms-playwright-agent && \
python -m virtualenv venv && \
pip install virtualenv && \
virtualenv venv && \
. venv/bin/activate && \
# if its amd64 then install the manylinux1_x86_64 pip package
if [ "$(uname -m)" = "x86_64" ]; then pip install /tmp/*manylinux1_x86_64*.whl; fi && \
Expand Down

0 comments on commit d1876f5

Please sign in to comment.