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