From b2e4fb809fafef8f2bef422deeaa9aeb0d7a9602 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Tue, 20 Jun 2023 13:19:36 +0800 Subject: [PATCH] =?UTF-8?q?build(container):=E7=BC=96=E8=AF=91=E7=94=A8?= =?UTF-8?q?=E5=AE=B9=E5=99=A8=E9=95=9C=E5=83=8F=E6=94=B9=E7=94=A8=E5=9B=BD?= =?UTF-8?q?=E5=86=85=E9=95=9C=E5=83=8F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b4df38b..062c966 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.19-alpine AS builder +FROM dockerproxy.com/library/golang:1.20-alpine AS builder ENV GO111MODULE=on ENV GOPROXY="https://goproxy.io" @@ -9,7 +9,7 @@ RUN go mod download && go mod verify ADD . /app RUN CGO_ENABLED=0 GOOS=linux go build -tags=jsoniter -v -o server . -FROM alpine:latest AS production +FROM dockerproxy.com/library/alpine:latest AS production RUN echo "https://mirror.tuna.tsinghua.edu.cn/alpine/v3.4/main/" > /etc/apk/repositories RUN apk add --no-cache tzdata RUN apk update \