-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.cypress
More file actions
24 lines (19 loc) · 929 Bytes
/
Dockerfile.cypress
File metadata and controls
24 lines (19 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Cypress factory image usage info: https://hub.docker.com/r/cypress/factory/
ARG NODE_VERSION='24.13.0'
ARG YARN_VERSION='1.22.22'
# Latest stable Chrome version is passed as a --build-arg in docker-build.yml workflow
FROM cypress/factory:7.2.1
WORKDIR /e2e
# for dependent modules, copy and build them
# for cypress module, only download the node_module dependencies
COPY --chown=node:node ./test-db-manager ./test-db-manager
COPY --chown=node:node ./jore4-hasura ./jore4-hasura
COPY --chown=node:node ./cypress/package.json ./cypress/package.json
COPY --chown=node:node ./package.json ./yarn.lock tsconfig.json ./
# download the dependencies + build the dependent modules
RUN yarn install --frozen-lockfile \
&& yarn ws:db build && yarn ws:tdi timetables-data-inserter:build
# copy the cypress test files from host
COPY --chown=node:node ./cypress ./cypress
# make sure cypress works
RUN yarn ws:e2e cypress --version