Dockerfile 374 B

123456789
  1. FROM node:16-slim
  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. RUN apt-get update && apt-get install -y curl iputils-ping && apt-get clean
  6. ENV TERM=xterm
  7. ADD fonts.conf /etc/fonts/
  8. RUN npm config set registry https://registry.npm.taobao.org && yarn --version
  9. WORKDIR /build