chore: not using goproxy by default (#4613)

This commit is contained in:
Kevin Wan
2025-01-29 12:28:47 +08:00
committed by GitHub
parent 9213b8ac27
commit f669d84ce8
12 changed files with 39 additions and 98 deletions

View File

@@ -3,10 +3,8 @@ FROM golang:{{.Version}}alpine AS builder
LABEL stage=gobuilder
ENV CGO_ENABLED 0
{{if .Chinese}}ENV GOPROXY https://goproxy.cn,direct
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
{{- end}}{{if .HasTimezone}}
{{if .HasTimezone}}
RUN apk update --no-cache && apk add --no-cache tzdata
{{- end}}