Skip to content

Commit 4394ede

Browse files
authored
chore: don't have Playwright globally installed in Docker image (microsoft#1921)
1 parent 04235c0 commit 4394ede

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

utils/docker/Dockerfile.focal

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ COPY ./dist/*-manylinux*.whl /tmp/
3535
RUN mkdir /ms-playwright && \
3636
mkdir /ms-playwright-agent && \
3737
cd /ms-playwright-agent && \
38+
pip install virtualenv && \
39+
virtualenv venv && \
40+
. venv/bin/activate && \
3841
# if its amd64 then install the manylinux1_x86_64 pip package
3942
if [ "$(uname -m)" = "x86_64" ]; then pip install /tmp/*manylinux1_x86_64*.whl; fi && \
4043
# if its arm64 then install the manylinux1_aarch64 pip package

utils/docker/Dockerfile.jammy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ COPY ./dist/*-manylinux*.whl /tmp/
3535
RUN mkdir /ms-playwright && \
3636
mkdir /ms-playwright-agent && \
3737
cd /ms-playwright-agent && \
38+
pip install virtualenv && \
39+
virtualenv venv && \
40+
. venv/bin/activate && \
3841
# if its amd64 then install the manylinux1_x86_64 pip package
3942
if [ "$(uname -m)" = "x86_64" ]; then pip install /tmp/*manylinux1_x86_64*.whl; fi && \
4043
# if its arm64 then install the manylinux1_aarch64 pip package

0 commit comments

Comments
 (0)