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/*