forked from laudspeaker/laudspeaker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.dev.e2e
19 lines (16 loc) · 746 Bytes
/
Dockerfile.dev.e2e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM cypress/base:16
WORKDIR /app
# dependencies will be installed only if the package files change
COPY ./packages/client/cypress/package.json .
COPY ./packages/client/cypress/package-lock.json .
COPY ./packages/client/cypress /app/cypress
COPY ./packages/client/cypress/cypress.config.js /app/cypress.config.js
# by setting CI environment variable we switch the Cypress install messages
# to small "started / finished" and avoid 1000s of lines of progress messages
# https://github.com/cypress-io/cypress/issues/1243
ENV CI=1
RUN npm ci
# verify that Cypress has been installed correctly.
# running this command separately from "cypress run" will also cache its result
# to avoid verifying again when running the tests
RUN npx cypress verify