Docker(十九)基於python3.5 以apline 爲系統的nginx環境

FROM nginx:1.13.12-alpine
ADD 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/*


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章