Use proper library path for Pillow

This commit is contained in:
PCoder 2024-02-19 20:49:29 +05:30
parent b6ff2b62c1
commit 8d13629c8b

View file

@ -22,5 +22,8 @@ RUN apk add --update --no-cache \
RUN echo 'INPUT ( libldap.so )' > /usr/lib/libldap_r.so
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
# Pillow seems to need LIBRARY_PATH set as follows: (see: https://github.com/python-pillow/Pillow/issues/1763#issuecomment-222383534)
RUN LIBRARY_PATH=/lib:/usr/lib /bin/sh -c "pip install --no-cache-dir -r requirements.txt"
COPY ./ .