mirror of
https://github.com/Afilmory/afilmory
synced 2026-04-24 23:05:05 +00:00
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>
This commit is contained in:
@@ -22,8 +22,8 @@ RUN pnpm install --filter core... --filter '@afilmory/web...' --filter '@afilmor
|
||||
RUN pnpm --filter core build:serve
|
||||
RUN pnpm --filter @afilmory/dashboard build
|
||||
RUN pnpm --filter core build
|
||||
RUN mkdir -p be/apps/core/dist/static/web && cp -r apps/web/dist/. be/apps/core/dist/static/web/
|
||||
RUN mkdir -p be/apps/core/dist/static/dashboard && cp -r be/apps/dashboard/dist/. be/apps/core/dist/static/dashboard/
|
||||
RUN mkdir -p be/apps/core/dist/static/web && cp -r apps/web/dist/* be/apps/core/dist/static/web/
|
||||
RUN mkdir -p be/apps/core/dist/static/dashboard && cp -r be/apps/dashboard/dist/* be/apps/core/dist/static/dashboard/
|
||||
|
||||
FROM node:lts-alpine AS runner
|
||||
ENV NODE_ENV=production
|
||||
|
||||
Reference in New Issue
Block a user