File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ FROM node:24-bookworm-slim as base
22
33RUN apt-get update && apt-get install -y git
44
5+ ENV EPICSHOP_GITHUB_REPO=https://github.com/epicweb-dev/e2e-react-application-testing-with-playwright
56ENV EPICSHOP_CONTEXT_CWD="/myapp/workshop-content"
67ENV EPICSHOP_DEPLOYED="true"
78ENV EPICSHOP_DISABLE_WATCHER="true"
@@ -11,11 +12,15 @@ ENV NODE_ENV="production"
1112
1213WORKDIR /myapp
1314
15+ # Clone the workshop repo during build time, excluding database files
16+ RUN git clone --depth 1 ${EPICSHOP_GITHUB_REPO} ${EPICSHOP_CONTEXT_CWD}
17+
1418ADD . .
1519
1620RUN npm install --omit=dev
1721
18- CMD rm -rf ${EPICSHOP_CONTEXT_CWD} && \
19- git clone --depth 1 https://github.com/epicweb-dev/e2e-react-application-testing-with-playwright ${EPICSHOP_CONTEXT_CWD} && \
20- cd ${EPICSHOP_CONTEXT_CWD} && \
22+ RUN cd ${EPICSHOP_CONTEXT_CWD} && \
23+ npx epicshop warm
24+
25+ CMD cd ${EPICSHOP_CONTEXT_CWD} && \
2126 npx epicshop start
Original file line number Diff line number Diff line change 11import path from 'node:path'
2+ import { warm } from '@epic-web/workshop-cli/warm'
23import {
34 getApps ,
45 isProblemApp ,
56 setPlayground ,
67} from '@epic-web/workshop-utils/apps.server'
78import fsExtra from 'fs-extra'
89
10+ await warm ( )
11+
912const allApps = await getApps ( )
1013const problemApps = allApps . filter ( isProblemApp )
1114
You can’t perform that action at this time.
0 commit comments