Simplify docker to only use nginx

master
Raymonzut 4 years ago
parent fd991f3dcc
commit f9f9f7010c
No known key found for this signature in database
GPG Key ID: 1E9BCC39EDD1DD53
  1. 1
      client/.dockerignore
  2. 9
      client/Dockerfile

@ -1,2 +1 @@
**/node_modules **/node_modules
**/dist

@ -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 FROM nginx as production-stage
RUN mkdir /app RUN mkdir /app
COPY --from=build-stage /app/dist /app COPY /public /app
COPY nginx.conf /etc/nginx/nginx.conf COPY nginx.conf /etc/nginx/nginx.conf

Loading…
Cancel
Save