From: Fiete Ostkamp Date: Thu, 22 Jun 2023 14:12:06 +0000 (+0000) Subject: ui is not using production builds in the Dockerfile X-Git-Tag: 0.1.0~10 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=61189a0932dc791b92c5f2c6bbf900910f2f5861;p=portal-ng%2Fui.git ui is not using production builds in the Dockerfile Issue-ID: PORTALNG-9 Signed-off-by: Fiete Ostkamp Change-Id: I1c5f5af3d9b0d494540d661ca2f2aea983edfa2e --- diff --git a/Dockerfile b/Dockerfile index b59b385..095c712 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ RUN npm install COPY . . -RUN npm run build +RUN npm run build -- --configuration production FROM openresty/openresty:1.21.4.1-4-alpine RUN apk add gettext diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index 72d0d29..ae20693 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -26,7 +26,6 @@ export const environment: Environment = { backendServerUrl: window.location.origin + '/api', hostname: window.location.hostname, production: true, - keycloakEditProfile: `${window.location.origin}/auth/realms/ONAP/account`, keycloak: { hostname: window["env"]["keycloak"]["hostname"] || `https://${window.location.host.replace('portal', 'keycloak')}`, realm: window["env"]["keycloak"]["realm"] || 'ONAP',