Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
8a061121
Commit
8a061121
authored
Apr 08, 2026
by
道非仙
Browse files
fix: update Alpine repository mirror and install build/runtime dependencies
parent
864aba93
Changes
1
Show whitespace changes
Inline
Side-by-side
Dockerfile
View file @
8a061121
...
@@ -47,7 +47,9 @@ ENV GOPROXY=${GOPROXY}
...
@@ -47,7 +47,9 @@ ENV GOPROXY=${GOPROXY}
ENV
GOSUMDB=${GOSUMDB}
ENV
GOSUMDB=${GOSUMDB}
# Install build dependencies
# Install build dependencies
RUN
apk add
--no-cache
git ca-certificates tzdata
RUN
sed
-i
's|dl-cdn.alpinelinux.org|mirrors.aliyun.com|g'
/etc/apk/repositories
&&
\
apk update
&&
\
apk add
--no-cache
git ca-certificates tzdata
WORKDIR
/app/backend
WORKDIR
/app/backend
...
@@ -89,7 +91,9 @@ LABEL description="Sub2API - AI API Gateway Platform"
...
@@ -89,7 +91,9 @@ LABEL description="Sub2API - AI API Gateway Platform"
LABEL
org.opencontainers.image.source="https://github.com/Wei-Shaw/sub2api"
LABEL
org.opencontainers.image.source="https://github.com/Wei-Shaw/sub2api"
# Install runtime dependencies
# Install runtime dependencies
RUN
apk add
--no-cache
\
RUN
sed
-i
's|dl-cdn.alpinelinux.org|mirrors.aliyun.com|g'
/etc/apk/repositories
&&
\
apk update
&&
\
apk add
--no-cache
\
ca-certificates
\
ca-certificates
\
tzdata
\
tzdata
\
su-exec
\
su-exec
\
...
...
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