FROM node:16-alpine as builder WORKDIR /app ADD . . RUN npm ci && npm run build # build nginx webserver FROM nginx:alpine EXPOSE 80 ADD ./nginx.conf /etc/nginx/nginx.conf COPY --from=builder /app/dist /var/www/html