FROM node:24-alpine AS builder WORKDIR /app COPY . . ENV NODE_OPTIONS=--openssl-legacy-provider RUN npm install --registry=https://registry.npmmirror.com && npm run build:stage FROM registry.zsmarter.com/public/nginx:1.22.1 COPY --from=builder /app/dist /app/nginx/html COPY --from=builder /app/nginx.conf /etc/nginx/nginx.conf RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories