feat: 指定交叉编译的镜像架构,达到构建提速目的

This commit is contained in:
二丫讲梵
2025-09-29 14:31:29 +08:00
committed by GitHub
parent 3f614e8011
commit 234ddcf835

View File

@@ -1,4 +1,4 @@
FROM golang:1.25-alpine AS builder
FROM --platform=linux/amd64 golang:1.25-alpine AS builder
ARG TARGETARCH
@@ -17,4 +17,4 @@ WORKDIR /root/
COPY --from=builder /app/hubproxy .
COPY --from=builder /app/config.toml .
CMD ["./hubproxy"]
CMD ["./hubproxy"]