sac/sf-ui/Dockerfile
BertrandC 7a2ac63e78
Some checks failed
Build and Push Docker Image / build (push) Has been cancelled
- 前段打包缺少 nginx.conf 配置文件问题
2025-05-21 11:07:22 +08:00

16 lines
422 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/sf-ui/nginx.conf /etc/nginx/nginx.conf
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories