diff --git a/client/apps/fusion-app-loader/package.json b/client/apps/fusion-app-loader/package.json index d81ebd6e..c59a94dd 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 b0b47343..4ac6d52f 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