#5.更新Alpine的软件源为阿里云,因为从默认官源拉取实在太慢了
#使用最新版源
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
#使用历史版本
RUN echo http://mirrors.aliyun.com/alpine/v3.12/main/ > /etc/apk/repositories && \
echo http://mirrors.aliyun.com/alpine/v3.12/community/ >> /etc/apk/repositories
RUN apk update && apk upgrade
#报gcc错误安装
apk add build-base