dockerfile 如下
代码语言:javascript复制FROM rlesouef/alpine-python-3.5
RUN echo -e "https://mirrors.aliyun.com/alpine/v3.7/main" > /etc/apk/repositories &&
apk --update add
bash
vim
curl
git
libxml2
libxml2-dev
libxslt
libxslt-dev
python3
python3-dev
postgresql-dev
mysql-dev
build-base &&
pip3 install -U pip &&
rm -rf /var/cache/apk/*
意思就是,修改alpine 安装源,修改pip 安装源