sac/sf-ui/Dockerfile
BertrandC 589d916d91
All checks were successful
Build and Push Docker Image / build (push) Successful in 7m9s
- 前段打包 node 版本导致的加密组件问题
2025-05-19 15:57:54 +08:00

16 lines
416 B
Docker

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