Dockerfile (218B)
1 FROM node:alpine as builder 2 3 WORKDIR /home/site 4 COPY . . 5 6 RUN npm install \ 7 && npm run build 8 9 FROM nginx:alpine 10 11 COPY --from=builder /home/site/public /usr/share/nginx/html 12 COPY ./nginx.conf /etc/nginx/nginx.conf 13