add dependencies for pillow

This commit is contained in:
David 2019-05-28 14:52:10 +08:00
parent 74858130ef
commit 4b6a5253b5
1 changed files with 14 additions and 1 deletions

View File

@ -6,7 +6,20 @@ ENV ENV PROD
# 更改alpine镜像源并安装依赖
RUN sed -i 's/dl-cdn.alpinelinux.org/mirror.tuna.tsinghua.edu.cn/g' /etc/apk/repositories \
&& apk add -U --no-cache gcc musl-dev postgresql-dev
&& apk add -U --no-cache gcc \
musl-dev \
# postgresql
postgresql-dev \
# pillow
jpeg-dev \
zlib-dev \
freetype-dev \
lcms2-dev \
openjpeg-dev \
tiff-dev \
tk-dev \
tcl-dev
# 更换pip镜像源并更新pip
RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple \