Adds How to use Pillow with Alpine to docker readme
@@ -49,11 +49,12 @@ Common issues
Pillow
~~~~~~
-If you want to install ``Pillow`` that `how you should <https://github.com/python-pillow/Pillow/issues/1763>`_ do it:
+If you want to install ``Pillow`` that you should add this to dockerfile and rebuild image:
- ``RUN apk add jpeg-dev zlib-dev``
-- ``LIBRARY_PATH=/lib:/usr/lib /bin/sh -c "pip install -r requirements.txt"``
+- ``LIBRARY_PATH=/lib:/usr/lib /bin/sh -c "test "$DJANGO_ENV" == production && pipenv install --system --deploy || pipenv install --dev --system --deploy"``
+See `<https://github.com/python-pillow/Pillow/issues/1763>`
Further reading
---------------
