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
301daa20
authored
Jun 25, 2026
by
ccran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat : Dockerfile替换为国内镜像源
parent
f5ccc0b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Dockerfile
+4
-4
No files found.
Dockerfile
View file @
301daa20
FROM
oven/bun:1@sha256:0733e50325078969732ebe3b15ce4c4be5082f18c4ac1a0f0ca4839c2e4e42a7 AS builder
FROM
docker.m.daocloud.io/
oven/bun:1@sha256:0733e50325078969732ebe3b15ce4c4be5082f18c4ac1a0f0ca4839c2e4e42a7 AS builder
WORKDIR
/build/web
COPY
web/package.json web/bun.lock ./
...
...
@@ -9,7 +9,7 @@ COPY ./web/default ./default
COPY
./VERSION /build/VERSION
RUN
cd
default
&&
DISABLE_ESLINT_PLUGIN
=
'true'
VITE_REACT_APP_VERSION
=
$(
cat
/build/VERSION
)
bun ../node_modules/@rsbuild/core/bin/rsbuild.js build
FROM
oven/bun:1@sha256:0733e50325078969732ebe3b15ce4c4be5082f18c4ac1a0f0ca4839c2e4e42a7 AS builder-classic
FROM
docker.m.daocloud.io/
oven/bun:1@sha256:0733e50325078969732ebe3b15ce4c4be5082f18c4ac1a0f0ca4839c2e4e42a7 AS builder-classic
WORKDIR
/build/web
COPY
web/package.json web/bun.lock ./
...
...
@@ -20,7 +20,7 @@ COPY ./web/classic ./classic
COPY
./VERSION /build/VERSION
RUN
cd
classic
&&
VITE_REACT_APP_VERSION
=
$(
cat
/build/VERSION
)
bun ../node_modules/@rsbuild/core/bin/rsbuild.js build
FROM
golang:1.26.1-alpine@sha256:2389ebfa5b7f43eeafbd6be0c3700cc46690ef842ad962f6c5bd6be49ed82039 AS builder2
FROM
docker.m.daocloud.io/
golang:1.26.1-alpine@sha256:2389ebfa5b7f43eeafbd6be0c3700cc46690ef842ad962f6c5bd6be49ed82039 AS builder2
ENV
GO111MODULE=on CGO_ENABLED=0
ARG
TARGETOS
...
...
@@ -38,7 +38,7 @@ COPY --from=builder /build/web/default/dist ./web/default/dist
COPY
--from=builder-classic /build/web/classic/dist ./web/classic/dist
RUN
go build
-ldflags
"-s -w -X 'github.com/QuantumNous/new-api/common.Version=
$(
cat
VERSION
)
'"
-o
new-api
FROM
debian:bookworm-slim@sha256:f06537653ac770703bc45b4b113475bd402f451e85223f0f2837acbf89ab020a
FROM
d
ocker.m.daocloud.io/d
ebian:bookworm-slim@sha256:f06537653ac770703bc45b4b113475bd402f451e85223f0f2837acbf89ab020a
RUN
apt-get update
\
&&
apt-get install
-y
--no-install-recommends
ca-certificates tzdata libasan8 wget
\
...
...
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