Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6ade0b82
authored
Dec 09, 2025
by
Calcium-Ion
Committed by
GitHub
Dec 09, 2025
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2357 from seefs001/feature/go1.25-greengc
chore(go): enable greenteagc
parents
4e5c6297
2430a8e0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
Dockerfile
+5
-4
No files found.
Dockerfile
View file @
6ade0b82
...
@@ -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 /
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment