Dockerfile

This commit is contained in:
2026-04-01 11:21:44 +08:00
parent f6c859c05c
commit d690922508

View File

@@ -11,11 +11,11 @@ ENV GOTOOLCHAIN=auto
ENV GOPRIVATE=gitea.com/red-future/common ENV GOPRIVATE=gitea.com/red-future/common
# 配置git使用私有Gitea仓库 # 配置git使用私有Gitea仓库
RUN git config --global url."http://x-token-auth:297685158fb953a1bad6c45e16f72472ca6e9866@116.204.74.41:3000/red-future/common.git".insteadOf "https://gitea.com/red-future/common.git" && \ RUN git config --global url."http://x-token-auth:9b31146aa8c10a7cb4f2e49dcee0934a223be1076289810e1ad98b968066c2bc@116.204.74.41:3000/red-future/common.git".insteadOf "https://gitea.com/red-future/common.git" && \
git config --global credential.helper store git config --global credential.helper store
# 设置GIT凭据 # 设置GIT凭据
RUN echo "http://x-token-auth:297685158fb953a1bad6c45e16f72472ca6e9866@116.204.74.41:3000" > ~/.git-credentials RUN echo "http://x-token-auth:9b31146aa8c10a7cb4f2e49dcee0934a223be1076289810e1ad98b968066c2bc@116.204.74.41:3000" > ~/.git-credentials
WORKDIR /build WORKDIR /build