Dockerfile 398 B

123456789101112
  1. FROM acgrid/node-build AS builder
  2. ADD package.json yarn.lock /build/
  3. ADD package.json yarn.lock /app/
  4. RUN cd /build && yarn --production=false && cd /app && yarn --production=true
  5. FROM node:lts-slim
  6. ENV TERM=xterm
  7. ADD fonts.conf /etc/fonts/
  8. RUN npm config set registry https://registry.npm.taobao.org && yarn --version
  9. COPY --from=builder /app /app
  10. COPY --from=builder /build /build
  11. WORKDIR /build