Sfoglia il codice sorgente

fix(widget): Dockerfile 添加 Widget 构建步骤

主前端构建后执行 widget 构建,确保 login-widget.js 被 embed 打包
master
fengsilin 3 settimane fa
parent
commit
60a1403ae2
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. +1
    -0
      Dockerfile

+ 1
- 0
Dockerfile Vedi File

@@ -10,6 +10,7 @@ RUN --mount=type=cache,target=/root/.bun/install/cache bun install
COPY ./web .
COPY ./VERSION .
RUN DISABLE_ESLINT_PLUGIN='true' VITE_REACT_APP_VERSION=$(cat VERSION) bun run build
RUN cd widget && bun install && bun run build

FROM swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/golang:1.26.1-alpine AS builder2
ENV GO111MODULE=on CGO_ENABLED=0


Caricamento…
Annulla
Salva