From 205fd359ec3bc5a98fceeb7a7685eba71df998e0 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 6 Jul 2024 22:22:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 00975c1..20a473c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,10 @@ -FROM golang:alpine as builder + +FROM registry.cn-hangzhou.aliyuncs.com/syschan/golang:alpine as builder WORKDIR /app COPY . . RUN go generate && source ./bin/start/.env && go build -o ./bin/$appName -v . -FROM alpine:latest +FROM registry.cn-hangzhou.aliyuncs.com/syschan/alpine:latest WORKDIR /app COPY --from=builder /app/bin/ . RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && apk add bash && chmod +x ./start/script.sh