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