|
@@ -1,5 +1,5 @@
|
|
|
-ARG REGISTRY=docker.io
|
|
|
-FROM ${REGISTRY}/golang:1.24-alpine AS builder
|
|
|
+ARG REGISTRY=registry.cn-hangzhou.aliyuncs.com/alpine
|
|
|
+FROM registry.cn-hangzhou.aliyuncs.com/google_containers/golang:1.24-alpine AS builder
|
|
|
RUN set -eux && sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
|
|
|
|
|
|
# 定义应用路径参数,用于指定构建的入口文件路径
|
|
@@ -20,7 +20,7 @@ RUN export GOPROXY=https://goproxy.cn,direct && go mod tidy && go build -ldflags
|
|
|
RUN mv config /data/app/bin/
|
|
|
|
|
|
|
|
|
-FROM ${REGISTRY}/alpine:3.18
|
|
|
+FROM registry.cn-hangzhou.aliyuncs.com/library/alpine:3.18
|
|
|
RUN set -eux && sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
|
|
|
|
|
|
|