!29 优化dockerfile

Merge pull request !29 from jrt101/master
This commit is contained in:
州的先生 2022-09-19 13:55:45 +00:00 committed by Gitee
commit 12baea6f8d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -9,13 +9,14 @@ COPY . /app/MrDoc/
WORKDIR /app/MrDoc
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
RUN set -x \
&& apk add --no-cache --virtual .build-deps build-base g++ gcc libxslt-dev python2-dev linux-headers \
&& apk add --no-cache pwgen git tzdata zlib-dev freetype-dev jpeg-dev mariadb-dev postgresql-dev \
&& && pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple \
&& python -m pip install --upgrade pip \
&& pip --no-cache-dir install -r requirements.txt \
&& pip --no-cache-dir install mysqlclient \
&& pip --no-cache-dir install uwsgi \
&& chmod +x docker_mrdoc.sh \
&& apk del .build-deps \
&& rm -rf /var/cache/apk/*