Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setup: fix playwright Dockerfile for monorepo
- Loading branch information
1 parent
4d913fa
commit 3f00d31
Showing
6 changed files
with
31 additions
and
23 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,21 @@ | ||
FROM mcr.microsoft.com/playwright:v1.29.1-focal | ||
|
||
WORKDIR /app | ||
# Install pnpm | ||
RUN npm i -g pnpm@7.11.0 | ||
|
||
WORKDIR /file-explorer | ||
|
||
COPY ./.npmrc ./.npmrc | ||
COPY ./package.json ./package.json | ||
COPY ./pnpm-lock.yaml ./pnpm-lock.yaml | ||
COPY ./pnpm-workspace.yaml ./pnpm-workspace.yaml | ||
COPY ./packages/app/package.json ./packages/app/package.json | ||
COPY ./packages/app/scripts/ ./packages/app/scripts/ | ||
|
||
COPY ../package.json ./package.json | ||
COPY ../pnpm-lock.yaml ./pnpm-lock.yaml | ||
COPY ../.npmrc ./.npmrc | ||
COPY ../scripts ./scripts | ||
RUN pnpm i | ||
|
||
COPY ../ ./ | ||
COPY ./packages/app/ ./packages/app/ | ||
|
||
WORKDIR /file-explorer/packages/app | ||
|
||
ENTRYPOINT ["pnpm", "run", "test:pw"] |
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,7 +1,7 @@ | ||
.webpack | ||
node_modules | ||
out | ||
src | ||
storybook-static | ||
test-results | ||
TODO.md | ||
**/node_modules | ||
packages/app/.webpack | ||
packages/app/out | ||
packages/app/src | ||
packages/app/storybook-static | ||
packages/app/test-results | ||
packages/app/TODO.md |
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
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