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