forked from cypress-io/cypress-example-kitchensink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
25 lines (22 loc) · 726 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# This Docker file is for building this project on Codeship Pro
# https://documentation.codeship.com/pro/languages-frameworks/nodejs/
# use Cypress provided image with all dependencies included
FROM cypress/base:18.16.1
RUN node --version
RUN npm --version
WORKDIR /home/node/app
# copy our test application
COPY package.json package-lock.json ./
COPY app ./app
COPY serve.json ./
COPY scripts ./scripts
# copy Cypress tests
COPY cypress.config.js cypress ./
COPY cypress ./cypress
# avoid many lines of progress bars during install
# https://github.com/cypress-io/cypress/issues/1243
ENV CI=1
# install NPM dependencies and Cypress binary
RUN npm ci
# check if the binary was installed successfully
RUN npx cypress verify