-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,27 @@ | ||
FROM node:20-bullseye | ||
|
||
FROM node:20-alpine as packager | ||
WORKDIR /e2e | ||
|
||
COPY ./ ./ | ||
COPY sample-apps/ sample-apps/ | ||
RUN find sample-apps \! -name "package.json" -mindepth 3 -maxdepth 3 -print | xargs rm -rf | ||
|
||
RUN ls && yarn install --inline-builds | ||
COPY packages/ packages/ | ||
RUN find packages \! -name "package.json" -mindepth 2 -maxdepth 2 -print | xargs rm -rf | ||
|
||
RUN yarn build:react:deps | ||
FROM node:20-bullseye as runner | ||
WORKDIR /e2e | ||
|
||
RUN npx playwright install chromium | ||
COPY .yarn/ ./.yarn/ | ||
COPY yarn.lock package.json .yarnrc.yml tsconfig.json ./ | ||
COPY --from=packager /e2e/packages ./packages | ||
COPY --from=packager /e2e/sample-apps ./sample-apps | ||
|
||
RUN yarn install | ||
|
||
RUN npx playwright install chromium | ||
RUN npx playwright install-deps | ||
|
||
# Copy all sources next | ||
COPY ./packages ./packages | ||
RUN yarn build:react:deps | ||
|
||
COPY ./sample-apps/ ./sample-apps/ |