ui is not using production builds in the Dockerfile 97/135097/1
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Thu, 22 Jun 2023 14:12:06 +0000 (14:12 +0000)
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Thu, 22 Jun 2023 14:12:06 +0000 (14:12 +0000)
Issue-ID: PORTALNG-9

Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Change-Id: I1c5f5af3d9b0d494540d661ca2f2aea983edfa2e

Dockerfile
src/environments/environment.prod.ts

index b59b385..095c712 100644 (file)
@@ -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
index 72d0d29..ae20693 100644 (file)
@@ -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',