X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=docker%2FNG-UI%2FDockerfile;h=0f8febb97d25b96f55a7252d890f0320ecfa232b;hb=d807e90e7f5c4125e9d5a799a862827e56cb8547;hp=b781ec05392a29001ac9c482f4003af5fb7eba3f;hpb=9887bb483aca5c1948ecb1939223036316574ed9;p=osm%2Fdevops.git 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