Install playwright in the base image so it is cached (#226)

This commit is contained in:
Marco Munizaga 2023-07-07 21:15:16 -07:00 committed by GitHub
parent 81b339dd70
commit d21d042ddd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View File

@ -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

View File

@ -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" ]