sac/sf-ui/Dockerfile
zhoujun b539e95ed1
Some checks failed
Build and Push Docker Image / build (push) Has been cancelled
更新 sf-ui/Dockerfile
2025-05-21 03:14:08 +00: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