1👍
Add this two lines under the FINAL
section, just below the RUN apk update && apk add libpq
# install pillow dependencies
RUN apk add --no-cache jpeg-dev zlib-dev
RUN apk add --no-cache --virtual .build-deps build-base linux-headers
This is happening because the BUILDER
removes the dependencies required for Pillow
after creating the image. In the FINAL
image, Pillow
is available, but its required dependencies are not.
- [Django]-How import and use csrf token in django 1.11?
- [Django]-Django-non rel and dbindexer ordering property
- [Django]-How to always prefetch_related for a specific django model
- [Django]-IntegrityError: (1062, "Duplicate entry '3-add_author' for key 2")
- [Django]-Using Python Dataclass in Django Models
0👍
I was stuck with the same problem.
Adding these dependencies to the FINAL section resolved this issue
# install pillow dependencies
RUN apk add --no-cache jpeg-dev zlib-dev \
fribidi-dev \
harfbuzz-dev \
lcms2-dev \
openjpeg-dev \
tcl-dev \
tiff-dev \
tk-dev
- [Django]-Django-pipeline throwing ValueError: the file could not be found
- [Django]-Django admin – Wrong model object at edit page
- [Django]-How to send email as alias using Django
- [Django]-Django Relation between two models
- [Django]-How can I return a 404 error page when user hits a wrong url in django?
Source:stackexchange.com