RED-6686 simplified build
This commit is contained in:
parent
53b59d354d
commit
2ba759c325
@ -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))
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user