Fix route nginx.conf in NG-UI container 41/9141/2
authorFelipe Vicens <felipe.vicens@atos.net>
Tue, 23 Jun 2020 06:59:42 +0000 (08:59 +0200)
committerFelipe Vicens <felipe.vicens@atos.net>
Tue, 23 Jun 2020 07:32:46 +0000 (09:32 +0200)
Change-Id: I3268b3ee1f4801fdf80ad2e79761f5ef7693775e
Signed-off-by: Felipe Vicens <felipe.vicens@atos.net>
docker/NG-UI/Dockerfile

index b781ec0..0f8febb 100644 (file)
@@ -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