Commit 6ade0b82 by Calcium-Ion Committed by GitHub

Merge pull request #2357 from seefs001/feature/go1.25-greengc

chore(go): enable greenteagc
parents 4e5c6297 2430a8e0
...@@ -14,7 +14,7 @@ ENV GO111MODULE=on CGO_ENABLED=0 ...@@ -14,7 +14,7 @@ ENV GO111MODULE=on CGO_ENABLED=0
ARG TARGETOS ARG TARGETOS
ARG TARGETARCH ARG TARGETARCH
ENV GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH:-amd64} ENV GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH:-amd64}
ENV GOEXPERIMENT=greenteagc
WORKDIR /build WORKDIR /build
...@@ -25,10 +25,11 @@ COPY . . ...@@ -25,10 +25,11 @@ COPY . .
COPY --from=builder /build/dist ./web/dist COPY --from=builder /build/dist ./web/dist
RUN go build -ldflags "-s -w -X 'github.com/QuantumNous/new-api/common.Version=$(cat VERSION)'" -o new-api RUN go build -ldflags "-s -w -X 'github.com/QuantumNous/new-api/common.Version=$(cat VERSION)'" -o new-api
FROM alpine FROM debian:bookworm-slim
RUN apk upgrade --no-cache \ RUN apt-get update \
&& apk add --no-cache ca-certificates tzdata \ && apt-get install -y --no-install-recommends ca-certificates tzdata libasan8 \
&& rm -rf /var/lib/apt/lists/* \
&& update-ca-certificates && update-ca-certificates
COPY --from=builder2 /build/new-api / COPY --from=builder2 /build/new-api /
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment