-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
42 lines (34 loc) · 1.33 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#----------------------------------------------------------------------------------------------
# Copyright (c) Bentley Systems, Incorporated. All rights reserved.
# Licensed under the MIT License. See LICENSE.md in the project root for license terms.
#----------------------------------------------------------------------------------------------
FROM mcr.microsoft.com/playwright:v1.46.1-jammy
# Install rush
RUN npm install -g @microsoft/rush
# Set the work directory
WORKDIR /appui
# Copy for `rush install`
COPY rush.json ./
COPY common/autoinstallers common/autoinstallers
COPY common/scripts common/scripts
COPY common/config common/config
COPY docs/storybook/package.json docs/storybook/
COPY e2e-tests/package.json e2e-tests/
COPY apps/test-providers/package.json apps/test-providers/
COPY apps/test-app/package.json apps/test-app/
COPY tools/codemod/package.json tools/codemod/
COPY ui/appui-react/package.json ui/appui-react/
COPY ui/components-react/package.json ui/components-react/
COPY ui/core-react/package.json ui/core-react/
COPY ui/imodel-components-react/package.json ui/imodel-components-react/
# Install dependencies
RUN rush install --to e2e-tests
# Copy for `rush build`
COPY ui ui
COPY apps apps
# Build
RUN rush build --to e2e-tests
# Copy for `playwright`
COPY e2e-tests e2e-tests
# Set the work directory
WORKDIR /appui/e2e-tests