Skip to content

Commit a75f76e

Browse files
committed
refactor: optimize Dockerfile build process
- Combined multiple build commands into a single RUN command using background execution and wait to improve build efficiency. - Ensured that builds for @afilmory/web, @afilmory/dashboard, and core are executed concurrently. Signed-off-by: Innei <tukon479@gmail.com>
1 parent 84ff4ef commit a75f76e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Dockerfile.core

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ RUN pnpm fetch --filter '@afilmory/dashboard...'
2121
COPY . .
2222

2323
RUN pnpm install --filter core... --filter '@afilmory/web...' --filter '@afilmory/dashboard...' --frozen-lockfile
24-
RUN pnpm --filter @afilmory/web build:serve
25-
RUN pnpm --filter @afilmory/dashboard build
26-
RUN pnpm --filter core build
24+
RUN pnpm --filter @afilmory/web build:serve & \
25+
pnpm --filter @afilmory/dashboard build & \
26+
pnpm --filter core build & \
27+
wait
2728
RUN mkdir -p be/apps/core/dist/static/web && cp -r apps/web/dist/* be/apps/core/dist/static/web/
2829
RUN mkdir -p be/apps/core/dist/static/dashboard && cp -r be/apps/dashboard/dist/* be/apps/core/dist/static/dashboard/
2930

0 commit comments

Comments
 (0)