add .dockerignore and fixing nginx conf for local deploy

This commit is contained in:
Gumelar Agum 2019-10-31 14:31:13 +07:00
parent a2c4171fc2
commit 37b91f9556
2 changed files with 6 additions and 3 deletions

2
.dockerignore Normal file
View file

@ -0,0 +1,2 @@
node_modules
build

View file

@ -2,9 +2,10 @@ server {
listen 80;
server_name localhost;
root /app/dashboard/;
location / {
location /dashboard/ {
alias /app/dashboard/;
index index.html;
try_files $uri $uri/ /index.html$args;
try_files $uri $uri/ /dashboard/index.html$args;
}
}