forked from UserOfficeProject/user-office-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.e2e
26 lines (20 loc) · 879 Bytes
/
Dockerfile.e2e
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
FROM cypress/included:13.2.0
# Copy and install node modules needed for frontend
WORKDIR /e2e
COPY apps/frontend/src/generated frontend/src/generated
COPY apps/frontend/package* frontend/
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"]