From: Felipe Vicens Date: Tue, 23 Jun 2020 06:59:42 +0000 (+0200) Subject: Fix route nginx.conf in NG-UI container X-Git-Tag: release-v8.0-start~3 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=559117422ec8282dcd2d23dbde9097b59add0537;p=osm%2Fdevops.git Fix route nginx.conf in NG-UI container Change-Id: I3268b3ee1f4801fdf80ad2e79761f5ef7693775e Signed-off-by: Felipe Vicens --- diff --git a/docker/NG-UI/Dockerfile b/docker/NG-UI/Dockerfile index b781ec05..0f8febb9 100644 --- a/docker/NG-UI/Dockerfile +++ b/docker/NG-UI/Dockerfile @@ -37,10 +37,16 @@ RUN apt-get install -y osm-ngui${NGUI_VERSION} && \ WORKDIR /usr/share/osm-ngui RUN npm install + # Building app. RUN npm run build -RUN cp /usr/share/osm-ngui/nginx.conf /etc/nginx/sites-available/default -#RUN cp /usr/share/osm-ngui/supervisor-app.conf /etc/supervisor/conf.d/ +RUN cp /usr/share/osm-ngui/nginx/nginx.conf /etc/nginx/sites-available/default + +# Removing the Nginx default page. +RUN rm -rf /usr/share/nginx/html/* + +# Copying angular build to Nginx default page. +RUN cp -r /usr/share/osm-ngui/dist/osm/* /usr/share/nginx/html EXPOSE 80