1 2 3 4 5 6 7 8 9 10 11 12
FROM mhart/alpine-node:14 as builder WORKDIR /tmp COPY . . RUN npx prettier --check . '!**/*.min.{css,js}' RUN yarn && yarn build ### # production image FROM nginx:stable-alpine COPY --from=builder /tmp/build /usr/share/nginx/html