Docker(十九)基于python3.5 以apline 为系统的nginx环境
FROM nginx:1.13.12-alpineADD requirements.txt /
RUN echo -e "https://mirrors.aliyun.com/alpine/v3.7/main" > /etc/apk/repositories && \
apk --update add \
bash \
vim \
curl \
git \
jpeg-dev \
zlib-dev \
libxml2 \
libxml2-dev \
libxslt \
libxslt-dev \
python3 \
python3-dev \
mysql-dev \
build-base&& \
pip3 install -U pip && \
pip3 install --no-cache-dir -r /requirements.txt -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com && \
rm -rf /var/cache/apk/*
页:
[1]