-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathDockerfile.e2e
More file actions
28 lines (22 loc) · 948 Bytes
/
Dockerfile.e2e
File metadata and controls
28 lines (22 loc) · 948 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
25
26
27
28
FROM cypress/included:15.4.0
# Copy and install node modules needed for frontend
WORKDIR /e2e
COPY apps/frontend/src/generated frontend/src/generated
COPY apps/frontend/package* frontend/
COPY validation ./validation
RUN ln -sfn /e2e/validation /validation
WORKDIR /e2e/frontend
RUN npm ci --silent
# Copy e2e tests to container. Install node modules needed for e2e tests
WORKDIR /e2e
COPY apps/e2e/cypress.config.ts ./user-office-core-e2e/
COPY apps/e2e/package* ./user-office-core-e2e/
COPY apps/e2e/tsconfig.json ./user-office-core-e2e/tsconfig.json
COPY apps/e2e/wait-for-frontend.sh ./user-office-core-e2e/
COPY apps/e2e/cypress ./user-office-core-e2e/cypress/
COPY apps/e2e/webpack.config.js ./user-office-core-e2e/
WORKDIR /e2e/user-office-core-e2e
RUN npm ci --silent
# Install necessary dependencies for wait-for-frontend.sh
RUN apt-get update && apt-get install curl -y
ENTRYPOINT ["npm", "run", "cy:run"]