diff --git a/Dockerfile b/Dockerfile index 3ef213587d0dd9a7c3f63877f7eb5450c96b889e..88b5046798182ce34716adc7cd5cedc75075984c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,5 +10,6 @@ RUN npm run build # production environment FROM nginx:1.16.0-alpine COPY --from=build /usr/src/app/build /usr/share/nginx/html +COPY default.conf /etc/nginx/conf.d/default.conf EXPOSE 80 CMD ["nginx", "-g", "daemon off;"] diff --git a/default.conf b/default.conf new file mode 100644 index 0000000000000000000000000000000000000000..6f9b9322e0b2a4e07d2887abaf8ff13f4ae16c8c --- /dev/null +++ b/default.conf @@ -0,0 +1,10 @@ +server { + listen 80; + server_name localhost; + location / { + try_files $uri /index.html; + root /usr/share/nginx/html; + index index.html index.htm; + } + error_page 500 502 503 504 /50x.html; +} \ No newline at end of file