FROM node:12.13-slim AS builder WORKDIR /app RUN npm install -g npm@latest COPY package*.json ./ RUN npm install #COPY dist dist COPY . . RUN npm run build FROM nginx COPY --from=builder /app/dist /usr/share/nginx/html COPY nginx.conf /etc/nginx/conf.d/default.conf EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]