From e67559dbd307f58cdb569bc594469e4af42bc19c Mon Sep 17 00:00:00 2001 From: Christopher Berge Hove Date: Thu, 3 Oct 2024 13:31:43 +0200 Subject: [PATCH] core: build legacy app loader in docker on publish --- client/apps/fusion-app-loader/package.json | 2 +- clientBackend.Dockerfile | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/client/apps/fusion-app-loader/package.json b/client/apps/fusion-app-loader/package.json index d81ebd6e2..c59a94dd6 100644 --- a/client/apps/fusion-app-loader/package.json +++ b/client/apps/fusion-app-loader/package.json @@ -6,7 +6,7 @@ "main": "src/index.ts", "scripts": { "prebuild": "rm -f ../../../client/packages/portal-client/src/assets/appLegacyLoader.js", - "build": "fusion-framework-cli app build && mv ./dist/app-bundle.js ../../../client/packages/portal-client/src/assets/appLegacyLoader.js", + "build:appLoader": "fusion-framework-cli app build && mv ./dist/app-bundle.js ../../../client/packages/portal-client/src/assets/appLegacyLoader.js", "build:resources": "tsc && vite build", "dev:appLoader": "fusion-framework-cli app dev -c vite.config.js", "docker": "cd .. && sh docker-script.sh app-react", diff --git a/clientBackend.Dockerfile b/clientBackend.Dockerfile index b0b47343d..4ac6d52fa 100644 --- a/clientBackend.Dockerfile +++ b/clientBackend.Dockerfile @@ -11,6 +11,10 @@ COPY ["/client", "."] RUN yarn install --frozen-lockfile +# Build the leagasy app laoder + +RUN cd client/apps/legacy-app-loader && yarn install --frozen-lockfile && yarn build:appLoader + RUN npx yarn run build # 2: Build & run web server