- FROM acgrid/node-build AS builder
- ADD package.json yarn.lock /build/
- ADD package.json yarn.lock /app/
- RUN cd /build && yarn --production=false && cd /app && yarn --production=true
- FROM node:lts-slim
- ENV TERM=xterm
- ADD fonts.conf /etc/fonts/
- RUN npm config set registry https://registry.npm.taobao.org && yarn --version
- COPY --from=builder /app /app
- COPY --from=builder /build /build
- WORKDIR /build
|