mirror of
https://github.com/status-im/libp2p-test-plans.git
synced 2025-01-09 14:25:58 +00:00
4bd0f9992f
* Revert "Install playwright in the base image so it is cached (#226)" This reverts commit d21d042ddd039b8e8e1f6c007a9eb169a3daf5fd. * Add comment
22 lines
803 B
Plaintext
22 lines
803 B
Plaintext
# syntax=docker/dockerfile:1
|
|
|
|
# Copied since we won't have the repo to use if expanding from cache.
|
|
|
|
# Workaround: https://github.com/docker/cli/issues/996
|
|
ARG BASE_IMAGE=node-js-libp2p-head
|
|
FROM ${BASE_IMAGE} as js-libp2p-base
|
|
|
|
FROM mcr.microsoft.com/playwright
|
|
|
|
|
|
COPY --from=js-libp2p-base /app/ /app/
|
|
WORKDIR /app/interop
|
|
# We install browsers here instead of the cached version so that we use the latest browsers at run time.
|
|
# Ideally this would also be pinned, but playwright controls this, so there isn't much we can do about it.
|
|
# By installing here, we avoid installing it at test time.
|
|
RUN ./node_modules/.bin/playwright install
|
|
ARG BROWSER=chromium # Options: chromium, firefox, webkit
|
|
ENV BROWSER=$BROWSER
|
|
|
|
ENTRYPOINT npm test -- --build false --types false -t browser -- --browser $BROWSER
|