-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update dockerfile to use specific pnpm version TCKT-000 (#480)
- Loading branch information
1 parent
c60af7a
commit 59a30b8
Showing
1 changed file
with
2 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ WORKDIR /srv/apps/atj-platform | |
COPY ./pnpm-lock.yaml ./pnpm-lock.yaml | ||
COPY ./package.json ./package.json | ||
RUN corepack enable | ||
RUN corepack prepare [email protected] --activate | ||
|
||
FROM base as test | ||
ENV E2E_ENDPOINT=http://localhost:9090 | ||
|
@@ -18,7 +19,7 @@ EXPOSE 9090 | |
EXPOSE 9191 | ||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile | ||
RUN pnpm build --filter=@gsa-tts/forms-spotlight --filter=@gsa-tts/forms-design | ||
WORKDIR ./e2e | ||
WORKDIR /srv/apps/atj-platform/e2e | ||
RUN serve ../apps/spotlight/dist -p 9090 -L & while ! nc -z localhost 9090; do sleep 1; done; pnpm playwright test; | ||
RUN serve ../packages/design/storybook-static -p 9191 -L & while ! nc -z localhost 9191; do sleep 1; done; pnpm --filter=end-to-end-tests test:storybook --url http://localhost:9191 --config-dir ../packages/design/.storybook/ --browsers firefox chromium | ||
|
||
|