diff --git a/Dockerfile b/Dockerfile index dfb0893..e0c32c8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,2 +1,5 @@ FROM nginx COPY ./out /usr/share/nginx/html + +COPY staging-nginx.conf /etc/nginx/conf.d +RUN rm /etc/nginx/conf.d/default.conf \ No newline at end of file diff --git a/staging-ngix.conf b/staging-ngix.conf new file mode 100644 index 0000000..a8c0434 --- /dev/null +++ b/staging-ngix.conf @@ -0,0 +1,9 @@ +server { + listen 80; + location / { + root /usr/share/nginx/html; + index index.html index.htm; + try_files $uri $uri/ /index.html; + } + error_page 404 /index.html; + } \ No newline at end of file