I don't remember much about this one, but if you're on M1 mac like me, you could try using the --platform=linux/amd64 platform when building the docker container (which uses QEMU emulation). Byloth mentioned this issue Jul 7, 2022 Error when installing Pillow using poetry python-pillo...