This commit is contained in:
ryan
2026-06-16 09:20:18 +08:00
parent bfa00ae6ac
commit c6df73e522
17 changed files with 183 additions and 25 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ COPY go.mod go.sum ./
RUN go mod download
COPY . .
COPY --from=frontend-builder /workspace/frontend/out ./internal/router/dist
COPY --from=frontend-builder /workspace/frontend/out ./internal/router/root/dist
RUN CGO_ENABLED=0 GOOS=linux go build \
-tags embed_frontend \
+1 -1
View File
@@ -72,7 +72,7 @@ RUN go mod download
COPY . .
# Overlay the compiled frontend into the embed path
COPY --from=frontend-builder /workspace/frontend/out ./internal/router/dist
COPY --from=frontend-builder /workspace/frontend/out ./internal/router/root/dist
# Build matrix: GOOS × GOARCH
# CGO_ENABLED=0 — fully static, no libc dependency, required for cross-compilation.