git 逻辑

This commit is contained in:
2026-06-10 15:30:52 +08:00
parent 41f2a84979
commit 023ab2f30e
17 changed files with 221 additions and 64 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags='-s -w' -o /out/server
# ─── Stage 3: runtime ───
FROM registry.jerryyan.top/library/alpine:3.20
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
&& apk add --no-cache ca-certificates tzdata && \
&& apk add --no-cache ca-certificates tzdata git openssh-client && \
addgroup -S app && adduser -S app -G app
WORKDIR /app
COPY --from=go /out/server /app/server