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
2
2
3
3
RUN apt-get update && apt-get install -y git
4
4
5
+ ENV EPICSHOP_GITHUB_REPO=https://github.com/epicweb-dev/e2e-react-application-testing-with-playwright
5
6
ENV EPICSHOP_CONTEXT_CWD="/myapp/workshop-content"
6
7
ENV EPICSHOP_DEPLOYED="true"
7
8
ENV EPICSHOP_DISABLE_WATCHER="true"
@@ -11,11 +12,15 @@ ENV NODE_ENV="production"
11
12
12
13
WORKDIR /myapp
13
14
15
+ # Clone the workshop repo during build time, excluding database files
16
+ RUN git clone --depth 1 ${EPICSHOP_GITHUB_REPO} ${EPICSHOP_CONTEXT_CWD}
17
+
14
18
ADD . .
15
19
16
20
RUN npm install --omit=dev
17
21
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} && \
21
26
npx epicshop start
Original file line number Diff line number Diff line change 1
1
import path from 'node:path'
2
+ import { warm } from '@epic-web/workshop-cli/warm'
2
3
import {
3
4
getApps ,
4
5
isProblemApp ,
5
6
setPlayground ,
6
7
} from '@epic-web/workshop-utils/apps.server'
7
8
import fsExtra from 'fs-extra'
8
9
10
+ await warm ( )
11
+
9
12
const allApps = await getApps ( )
10
13
const problemApps = allApps . filter ( isProblemApp )
11
14
You can’t perform that action at this time.
0 commit comments