feat: update docker alpine package mirror (#1924)

* feat: update docker alpine package mirror

* chore: format code
This commit is contained in:
Kevin Wan
2022-05-23 09:13:21 +08:00
committed by GitHub
parent f1fdd55b38
commit 72ebbb9774
3 changed files with 5 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ 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}}
RUN apk update --no-cache && apk add --no-cache tzdata
{{end}}