Skip to content

Commit

Permalink
nginx config change
Browse files Browse the repository at this point in the history
  • Loading branch information
vamcart committed Dec 15, 2019
1 parent ee69483 commit 4946455
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4946455

Please sign in to comment.