RED-6686 simplified build

This commit is contained in:
Timo Bejan 2023-06-27 02:22:37 +03:00
parent 53b59d354d
commit 2ba759c325
3 changed files with 2 additions and 3 deletions

View File

@ -27,7 +27,7 @@ async function bootstrap(appConfig: AppConfig, version: { FRONTEND_APP_VERSION:
}
const configPromise = fetch('/ui/assets/config/config.json').then(resp => resp.json());
const versionPromise = fetch('/ui/assets/config/version.json').then(resp => resp.json());
const versionPromise = fetch('/ui/assets/version/version.json').then(resp => resp.json());
Promise.all([configPromise, versionPromise])
.then(([appConfig, version]) => bootstrap(appConfig, version))

View File

@ -41,8 +41,7 @@ RUN rm -rf /usr/share/nginx/html/*
## From builder stage copy over the artifacts in dist folder to default nginx public folder
COPY --from=builder /ng-app/dist/apps/red-ui /usr/share/nginx/html/ui
COPY version.json /usr/share/nginx/html/ui/assets/config/version.json
RUN cat /usr/share/nginx/html/ui/assets/config/version.json
COPY version.json /usr/share/nginx/html/ui/assets/version/version.json
RUN chmod o+r -R /usr/share/nginx/html
RUN chmod g+r -R /usr/share/nginx/html