Docker(十八)基于python3.
Dockerfile 如下
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 安装源
相关文章