diff --git a/Dockerfile b/Dockerfile index e604226..0300c56 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,10 @@ # ── Stage 1: 編譯 ───────────────────────────────────────────── -FROM golang:1.24-alpine AS builder +FROM golang:1.25-alpine AS builder WORKDIR /build COPY go.mod go.sum ./ -# 臨時降版 go directive 以符合 1.24 編譯器,不修改原始 go.mod -RUN go mod edit -go=1.24 && go mod download +RUN go mod download COPY . . RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o cursor-api-proxy . diff --git a/cursor-api-proxy b/cursor-api-proxy new file mode 100755 index 0000000..ddfa4ac Binary files /dev/null and b/cursor-api-proxy differ