
Some checks failed
Build and Push Docker Image / build (push) Failing after 24s
- 新增 builder-ui.yaml 工作流,用于在 Gitea 上构建和推送 Docker 镜像 - 在 Makefile 中添加 ui 目标,支持本地构建 - 更新 sf-ui/Dockerfile,使用多阶段构建以减小镜像大小
16 lines
374 B
Docker
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
|
|
|
|
|
|
|