From 4a1d5b9e727cd3c4fec7466dfd564884f2ef876f Mon Sep 17 00:00:00 2001 From: Jiho Lee Date: Sun, 11 Dec 2022 14:03:55 +0900 Subject: [PATCH] chore: delete duplicate nginx.conf injection --- Dockerfile | 2 -- nginx/nginx.conf | 25 ------------------------- 2 files changed, 27 deletions(-) delete mode 100644 nginx/nginx.conf diff --git a/Dockerfile b/Dockerfile index 404b2d3..04b261a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,4 @@ RUN yarn build FROM nginx:1.23.1-alpine COPY --from=build /app/dist /usr/share/nginx/html -RUN rm /etc/nginx/conf.d/default.conf -COPY nginx/nginx.conf /etc/nginx/conf.d EXPOSE 80 \ No newline at end of file diff --git a/nginx/nginx.conf b/nginx/nginx.conf deleted file mode 100644 index 94dca2d..0000000 --- a/nginx/nginx.conf +++ /dev/null @@ -1,25 +0,0 @@ -# Original Code from https://dev.to/aws-builders/containerize-react-app-with-docker-for-production-572b - -server { - include /etc/nginx/mime.types; - - listen 80; - - location / { - root /usr/share/nginx/html; - index index.html index.htm; - - try_files $uri /index.html; - } - - location /healthz { - return 200; - } - - error_page 500 502 503 504 /50x.html; - - location = /50x.html { - root /usr/share/nginx/html; - } - -} \ No newline at end of file