From cfadadac5f44171d3743fbf9cb74626183e6c384 Mon Sep 17 00:00:00 2001 From: Adrien Agez Date: Sat, 18 Jul 2020 19:09:29 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5:=20remove=20useless=20nginx=20conf?= =?UTF-8?q?ig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile.production | 7 ++----- config/docker/nginx.conf | 9 --------- 2 files changed, 2 insertions(+), 14 deletions(-) delete mode 100644 config/docker/nginx.conf diff --git a/Dockerfile.production b/Dockerfile.production index a423fd1..13f0d5c 100644 --- a/Dockerfile.production +++ b/Dockerfile.production @@ -7,8 +7,5 @@ COPY . . RUN yarn build FROM nginx:1.17.9-alpine as production-stage -RUN mkdir /app -COPY --from=build-stage /app/dist /app -RUN rm /etc/nginx/conf.d/default.conf -COPY config/docker/nginx.conf /etc/nginx/conf.d/nexus-timers.conf - +WORKDIR /usr/share/nginx/html +COPY --from=build-stage /app/dist . diff --git a/config/docker/nginx.conf b/config/docker/nginx.conf deleted file mode 100644 index a883b73..0000000 --- a/config/docker/nginx.conf +++ /dev/null @@ -1,9 +0,0 @@ -server { - listen 80; - root /app; - - - access_log /var/log/nginx/nexus-timers.access.log; - error_log /var/log/nginx/nexus-timers.error.log; - -}