Dockerfile 353 B

123456789101112131415161718
  1. FROM node:16.13.1 AS builder
  2. WORKDIR /app
  3. COPY ./patches /app/patches
  4. COPY package.json /app/package.json
  5. COPY package-lock.json /app/package-lock.json
  6. RUN npm set progress=false
  7. RUN npm install --force --registry=https://registry.npm.taobao.org
  8. COPY . .
  9. RUN npm run build
  10. FROM alpine:3.15.0
  11. WORKDIR /app
  12. COPY --from=builder /app/build /app/build