diff --git a/Dockerfile b/Dockerfile index 86ab39a..3197fa7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ FROM mcr.microsoft.com/playwright:v1.42.1-jammy WORKDIR /app # Installation of packages for purple-a11y -RUN apt-get update && apt-get install -y zip git tree openjdk-11-jdk xvfb libgbm-dev libgtk2.0-0 libgtk-3-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth dbus-x11 && \ +RUN apt-get update && apt-get install -y zip git tree openjdk-11-jdk xvfb libgbm-dev libgtk2.0-0 libgtk-3-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth dbus-x11 python-is-python3 libcurl4-openssl-dev build-essential && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* diff --git a/shell_scripts/start_docker.sh b/shell_scripts/start_docker.sh index f4a47a4..2ee1bb6 100755 --- a/shell_scripts/start_docker.sh +++ b/shell_scripts/start_docker.sh @@ -3,8 +3,13 @@ if [ "$(docker ps -a | grep purple-a11y-tests-instance)" ]; then docker rm -f purple-a11y-tests-instance fi -# Build the Docker container -docker build -t purple-a11y-tests . +# Build the Docker container (Legacy builder) +# docker build -t purple-a11y-tests . + +# Build the Docker container using buildx +# Refer to MacOS (Colima) steps here to install buildx: +# https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#installing-buildx +docker buildx build -t purple-a11y-tests -f Dockerfile . # Add hostname mappings and run the container docker run -dit --name purple-a11y-tests-instance --add-host=main.purplea11y.local:0.0.0.0 --add-host=diffHostname.purplea11y.local:0.0.0.0 --add-host=docs.google.com:0.0.0.0 purple-a11y-tests