ROM node:alpine as builder WORKDIR /app COPY ./package.json /app/package.json COPY . /app RUN npm ci --only=production RUN npm run build FROM nginx:alpine as runner #RUN apk add --update npm WORKDIR /app COPY --from=builder /app/dist /usr/share/nginx/html COPY ./nginx.conf /etc/nginx/nginx.conf EXPOSE 80