Skip to content

Commit dbc8be1

Browse files
committed
refactor(docker): update asset copying in Dockerfile for core application
- Modified the Dockerfile to use wildcard copying for built assets from the web and dashboard applications, ensuring all files are included in the production image. - This change enhances the reliability of the asset transfer process during the build stage. Signed-off-by: Innei <tukon479@gmail.com>
1 parent 5fd3fcb commit dbc8be1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile.core

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ RUN pnpm install --filter core... --filter '@afilmory/web...' --filter '@afilmor
2222
RUN pnpm --filter core build:serve
2323
RUN pnpm --filter @afilmory/dashboard build
2424
RUN pnpm --filter core build
25-
RUN mkdir -p be/apps/core/dist/static/web && cp -r apps/web/dist/. be/apps/core/dist/static/web/
26-
RUN mkdir -p be/apps/core/dist/static/dashboard && cp -r be/apps/dashboard/dist/. be/apps/core/dist/static/dashboard/
25+
RUN mkdir -p be/apps/core/dist/static/web && cp -r apps/web/dist/* be/apps/core/dist/static/web/
26+
RUN mkdir -p be/apps/core/dist/static/dashboard && cp -r be/apps/dashboard/dist/* be/apps/core/dist/static/dashboard/
2727

2828
FROM node:lts-alpine AS runner
2929
ENV NODE_ENV=production

0 commit comments

Comments
 (0)