From 559117422ec8282dcd2d23dbde9097b59add0537 Mon Sep 17 00:00:00 2001 From: Felipe Vicens Date: Tue, 23 Jun 2020 08:59:42 +0200 Subject: [PATCH] Fix route nginx.conf in NG-UI container Change-Id: I3268b3ee1f4801fdf80ad2e79761f5ef7693775e Signed-off-by: Felipe Vicens --- docker/NG-UI/Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 -- 2.17.1