FROM node:16-alpine as builder WORKDIR /code RUN yarn config set registry https://registry.npm.taobao.org/ ADD package.json /code ADD yarn.lock /code RUN yarn install ADD . /code RUN yarn build --spa FROM nginx:1.19-alpine #COPY nginx.conf /etc/nginx/conf.d/seecoder.conf COPY --from=builder /code/dist/ /var/www/html/dist/