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; - -}