From 7d9d1aa7a68069d7ef29a5d04483fb91a0724bf2 Mon Sep 17 00:00:00 2001 From: zhouyonggao <1971162852@qq.com> Date: Fri, 28 Nov 2025 15:16:28 +0800 Subject: [PATCH] =?UTF-8?q?refactor(Dockerfile):=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E4=B8=AD=E5=9B=BD=E9=95=9C=E5=83=8F=E6=BA=90=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E4=BB=A5=E7=AE=80=E5=8C=96=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 构建环境已迁移至全球通用镜像源,不再需要特定中国镜像配置 --- Dockerfile | 3 --- 1 file changed, 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index eebf41e..314e816 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,4 @@ FROM golang:1.21-alpine AS build -ENV GOPROXY=https://goproxy.cn,direct -RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories WORKDIR /app RUN apk add --no-cache build-base COPY server/ ./server/ @@ -9,7 +7,6 @@ WORKDIR /app/server RUN go build -o /app/bin/marketing-data-server ./cmd/server FROM alpine:3.19 -RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories WORKDIR /app COPY --from=build /app/bin/marketing-data-server /app/bin/marketing-data-server COPY --from=build /app/web /app/web