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
a792f32d
Commit
a792f32d
authored
Dec 29, 2025
by
yangjianbo
Browse files
feat: 优化dockerfile文件
parent
777e1c8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
a792f32d
...
...
@@ -9,6 +9,8 @@
ARG
NODE_IMAGE=node:24-alpine
ARG
GOLANG_IMAGE=golang:1.25-alpine
ARG
ALPINE_IMAGE=alpine:3.19
ARG
GOPROXY=https://goproxy.cn,direct
ARG
GOSUMDB=sum.golang.google.cn
# -----------------------------------------------------------------------------
# Stage 1: Frontend Builder
...
...
@@ -34,6 +36,11 @@ FROM ${GOLANG_IMAGE} AS backend-builder
ARG
VERSION=docker
ARG
COMMIT=docker
ARG
DATE
ARG
GOPROXY
ARG
GOSUMDB
ENV
GOPROXY=${GOPROXY}
ENV
GOSUMDB=${GOSUMDB}
# Install build dependencies
RUN
apk add
--no-cache
git ca-certificates tzdata
...
...
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