sac/sf-ui/Dockerfile
jun 5a2a299bb2
Some checks failed
Build and Push Docker Image / build (push) Failing after 24s
ci(sf-ui): 添加 UI 项目的 Docker 镜像构建和推送流程
- 新增 builder-ui.yaml 工作流,用于在 Gitea 上构建和推送 Docker 镜像
- 在 Makefile 中添加 ui 目标,支持本地构建
- 更新 sf-ui/Dockerfile,使用多阶段构建以减小镜像大小
2025-05-16 06:24:24 -04:00

16 lines
374 B
Docker

FROM node:24-alpine AS builder
WORKDIR /app
COPY . .
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