- FROM node:16-slim
- ADD package.json yarn.lock /build/
- ADD package.json yarn.lock /app/
- RUN cd /build && yarn --production=false && cd /app && yarn --production=true
- RUN apt-get update && apt-get install -y curl iputils-ping && apt-get clean
- ENV TERM=xterm
- ADD fonts.conf /etc/fonts/
- RUN npm config set registry https://registry.npm.taobao.org && yarn --version
- WORKDIR /build
|