From 7066636c2f7a45e89cda93102f65c7c69905877c Mon Sep 17 00:00:00 2001 From: ziming Date: Thu, 21 Aug 2025 10:14:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E7=AC=94=E7=AB=8B=E5=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0668fe5..ee09882 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,11 @@ -FROM registry.cn-chengdu.aliyuncs.com/lansexiongdi/build:1.22.2 AS builder - -ENV GOCACHE /root/.cache/go-build +FROM registry.cn-chengdu.aliyuncs.com/pkgtool/build:1.23.6 AS builder COPY . /src WORKDIR /src RUN make build -FROM registry.cn-chengdu.aliyuncs.com/lansexiongdi/work:v1 - -RUN echo 'http://mirrors.ustc.edu.cn/alpine/v3.5/main' > /etc/apk/repositories \ -&& echo 'http://mirrors.ustc.edu.cn/alpine/v3.5/community' >>/etc/apk/repositories \ -&& apk update && apk add tzdata \ -&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ -&& echo "Asia/Shanghai" > /etc/timezone +FROM registry.cn-chengdu.aliyuncs.com/pkgtool/work:0.0.1 COPY --from=builder /src/bin /app #删除config文件,线上是通过挂载进来的