Dockerfile 473 B

12345678910111213
  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:14-slim
  6. RUN apt-get update && apt-get install -y curl iputils-ping && apt-get clean
  7. ENV TERM=xterm
  8. ADD fonts.conf /etc/fonts/
  9. RUN npm config set registry https://registry.npm.taobao.org && yarn --version
  10. COPY --from=builder /app /app
  11. COPY --from=builder /build /build
  12. WORKDIR /build