From d21d042ddd039b8e8e1f6c007a9eb169a3daf5fd Mon Sep 17 00:00:00 2001 From: Marco Munizaga Date: Fri, 7 Jul 2023 21:15:16 -0700 Subject: [PATCH] Install playwright in the base image so it is cached (#226) --- multidim-interop/impl/js/v0.45/BrowserDockerfile | 1 - multidim-interop/impl/js/v0.45/Dockerfile | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/multidim-interop/impl/js/v0.45/BrowserDockerfile b/multidim-interop/impl/js/v0.45/BrowserDockerfile index f73ca41..8a84c15 100644 --- a/multidim-interop/impl/js/v0.45/BrowserDockerfile +++ b/multidim-interop/impl/js/v0.45/BrowserDockerfile @@ -11,7 +11,6 @@ FROM mcr.microsoft.com/playwright COPY --from=js-libp2p-base /app/ /app/ WORKDIR /app/interop -RUN ./node_modules/.bin/playwright install ARG BROWSER=chromium # Options: chromium, firefox, webkit ENV BROWSER=$BROWSER diff --git a/multidim-interop/impl/js/v0.45/Dockerfile b/multidim-interop/impl/js/v0.45/Dockerfile index 40e67d6..1d49d6c 100644 --- a/multidim-interop/impl/js/v0.45/Dockerfile +++ b/multidim-interop/impl/js/v0.45/Dockerfile @@ -7,5 +7,6 @@ RUN npm i && npm run build WORKDIR /app/interop RUN npm i && npm run build +RUN ./node_modules/.bin/playwright install ENTRYPOINT [ "npm", "test", "--", "--build", "false", "--types", "false", "-t", "node" ]