diff --git a/Dockerfile b/Dockerfile index dcfe70c..1f036a6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,5 +9,6 @@ RUN npm run build # production environment FROM nginx:alpine COPY --from=builder /app/build /usr/share/nginx/html +COPY nginx.conf /etc/nginx/nginx.conf EXPOSE 80 CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..3b744d1 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,18 @@ +events {} + +http { + server { + listen 80; + + location /stub_status { + stub_status on; + allow 127.0.0.1; + deny all; + } + + location / { + root /usr/share/nginx/html; + index index.html; + } + } +} \ No newline at end of file