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
2430a8e0
authored
Dec 02, 2025
by
Seefs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(go): enable greenteagc
parent
4c54836a
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 @
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 /
...
...
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