From f9f9f7010c172afd38cd000f02f00640ee04a8ff Mon Sep 17 00:00:00 2001 From: Raymonzut <40148684+Raymonzut@users.noreply.github.com> Date: Tue, 16 Jun 2020 13:38:10 +0200 Subject: [PATCH] Simplify docker to only use nginx --- client/.dockerignore | 1 - client/Dockerfile | 9 +-------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/client/.dockerignore b/client/.dockerignore index e0a57b2..cf70988 100644 --- a/client/.dockerignore +++ b/client/.dockerignore @@ -1,2 +1 @@ **/node_modules -**/dist diff --git a/client/Dockerfile b/client/Dockerfile index c805f4a..9bda8c3 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -1,11 +1,4 @@ -FROM node:latest as build-stage -WORKDIR /app -COPY package*.json ./ -RUN npm install -COPY ./ . -RUN npm run build - FROM nginx as production-stage RUN mkdir /app -COPY --from=build-stage /app/dist /app +COPY /public /app COPY nginx.conf /etc/nginx/nginx.conf