Configuring ngnix to proxy request toward the Node server
Change-Id: If9ae80afeef276886f87602d6d973bb30ac19dce
diff --git a/Dockerfile b/Dockerfile
index 72869a7..4b1df3d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -6,7 +6,7 @@
# Set environment vars
ENV CODE_SOURCE .
ENV CODE_DEST /var/www
-ENV VHOST /usr/share/nginx/html
+ENV VHOST /var/www/dist
# Install nodeJs
RUN apt-get update
@@ -24,5 +24,5 @@
RUN npm install
RUN npm run build
-# Move the builded code to nginx vhost
-RUN mv ${CODE_DEST}/dist/* ${VHOST}
\ No newline at end of file
+# Override nginx configutaion
+RUN mv ${CODE_SOURCE}/nginx.conf /etc/nginx/conf.d/default.conf
\ No newline at end of file