From 4946455f4bffde0b09bae96b296607c4628248fe Mon Sep 17 00:00:00 2001 From: vam Date: Sun, 15 Dec 2019 14:39:00 +0300 Subject: [PATCH] nginx config change --- Dockerfile | 8 ++++---- nginx/default.conf | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index c950ad4..51b6a0c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,10 +16,10 @@ RUN echo "deb http://nginx.org/packages/debian/ ${NGINX_CODENAME} nginx" >> /etc nginx # copy project - LOCAL CODE -RUN mkdir -p /var/www/cezerin2-admin -ADD . /var/www/cezerin2-admin +RUN mkdir -p /var/www/vamshop-dashboard +ADD . /var/www/vamshop-dashboard -WORKDIR /var/www/cezerin2-admin +WORKDIR /var/www/vamshop-dashboard # Nginx config COPY nginx/nginx.conf /etc/nginx/ @@ -30,7 +30,7 @@ COPY docker-entrypoint.sh /usr/local/bin/ RUN chmod +x "/usr/local/bin/docker-entrypoint.sh" # build project -RUN cd /var/www/cezerin2-admin \ +RUN cd /var/www/vamshop-dashboard \ && npm install \ && npm cache clean --force \ && npm run build diff --git a/nginx/default.conf b/nginx/default.conf index ce72537..a262849 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -19,7 +19,7 @@ server { expires 1y; access_log off; log_not_found off; - root /var/www/cezerin2-admin/dist; + root /var/www/vamshop-dashboard/dist; location / { index index.html index.htm;