Browse Source

build(deploy): 更新 Dockerfile以添加 git 依赖

- 在 builder 阶段添加了 git 依赖,通过 apk add --no-cache git 命令安装- 优化了 RUN 指
fusu 2 tháng trước cách đây
mục cha
commit
ad4138474c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      deploy/build/Dockerfile

+ 1 - 1
deploy/build/Dockerfile

@@ -1,6 +1,6 @@
 ARG REGISTRY=docker.io
 FROM ${REGISTRY}/golang:1.24-alpine AS builder
-RUN set -eux && sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
+RUN set -eux && sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories && apk add --no-cache git
 
 # 定义应用路径参数,用于指定构建的入口文件路径
 ARG APP_RELATIVE_PATH