Install playwright in the base image so it is cached (#226)
This commit is contained in:
parent
81b339dd70
commit
d21d042ddd
|
@ -11,7 +11,6 @@ FROM mcr.microsoft.com/playwright
|
||||||
|
|
||||||
COPY --from=js-libp2p-base /app/ /app/
|
COPY --from=js-libp2p-base /app/ /app/
|
||||||
WORKDIR /app/interop
|
WORKDIR /app/interop
|
||||||
RUN ./node_modules/.bin/playwright install
|
|
||||||
ARG BROWSER=chromium # Options: chromium, firefox, webkit
|
ARG BROWSER=chromium # Options: chromium, firefox, webkit
|
||||||
ENV BROWSER=$BROWSER
|
ENV BROWSER=$BROWSER
|
||||||
|
|
||||||
|
|
|
@ -7,5 +7,6 @@ RUN npm i && npm run build
|
||||||
|
|
||||||
WORKDIR /app/interop
|
WORKDIR /app/interop
|
||||||
RUN npm i && npm run build
|
RUN npm i && npm run build
|
||||||
|
RUN ./node_modules/.bin/playwright install
|
||||||
|
|
||||||
ENTRYPOINT [ "npm", "test", "--", "--build", "false", "--types", "false", "-t", "node" ]
|
ENTRYPOINT [ "npm", "test", "--", "--build", "false", "--types", "false", "-t", "node" ]
|
||||||
|
|
Loading…
Reference in New Issue