File tree 3 files changed +6
-0
lines changed
3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 4
4
paths :
5
5
- ' .github/workflows/test_docker.yml'
6
6
- ' setup.py'
7
+ - ' **/Dockerfile.*'
7
8
branches :
8
9
- main
9
10
- release-*
10
11
pull_request :
11
12
paths :
12
13
- ' .github/workflows/test_docker.yml'
13
14
- ' setup.py'
15
+ - ' **/Dockerfile.*'
14
16
branches :
15
17
- main
16
18
- release-*
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ FROM ubuntu:bionic
2
2
3
3
ARG DEBIAN_FRONTEND=noninteractive
4
4
ARG TZ=America/Los_Angeles
5
+ ARG DOCKER_IMAGE_NAME_TEMPLATE="mcr.microsoft.com/playwright/python:v%version%-bionic"
5
6
6
7
# === INSTALL Python ===
7
8
@@ -38,6 +39,7 @@ RUN mkdir /ms-playwright && \
38
39
if [ "$(uname -m)" = "x86_64" ]; then pip install /tmp/*manylinux1_x86_64*.whl; fi && \
39
40
# if its arm64 then install the manylinux1_aarch64 pip package
40
41
if [ "$(uname -m)" = "aarch64" ]; then pip install /tmp/*manylinux_2_17_aarch64*.whl; fi && \
42
+ playwright mark-docker-image "${DOCKER_IMAGE_NAME_TEMPLATE}" && \
41
43
playwright install --with-deps && rm -rf /var/lib/apt/lists/* && \
42
44
rm /tmp/*.whl && \
43
45
rm -rf /ms-playwright-agent && \
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ FROM ubuntu:focal
2
2
3
3
ARG DEBIAN_FRONTEND=noninteractive
4
4
ARG TZ=America/Los_Angeles
5
+ ARG DOCKER_IMAGE_NAME_TEMPLATE="mcr.microsoft.com/playwright/python:v%version%-focal"
5
6
6
7
# === INSTALL Python ===
7
8
@@ -38,6 +39,7 @@ RUN mkdir /ms-playwright && \
38
39
if [ "$(uname -m)" = "x86_64" ]; then pip install /tmp/*manylinux1_x86_64*.whl; fi && \
39
40
# if its arm64 then install the manylinux1_aarch64 pip package
40
41
if [ "$(uname -m)" = "aarch64" ]; then pip install /tmp/*manylinux_2_17_aarch64*.whl; fi && \
42
+ playwright mark-docker-image "${DOCKER_IMAGE_NAME_TEMPLATE}" && \
41
43
playwright install --with-deps && rm -rf /var/lib/apt/lists/* && \
42
44
rm /tmp/*.whl && \
43
45
rm -rf /ms-playwright-agent && \
You can’t perform that action at this time.
0 commit comments