The base PHP image currently includes a lot of build dependencies to support the docker-php-extension-installer: docker-library/php#769. Removing these from the runtime image would considerably reduce size.
Per the suggestions in the linked issue, a multi-stage image could potentially mitigate this issue.
The base PHP image currently includes a lot of build dependencies to support the docker-php-extension-installer: docker-library/php#769. Removing these from the runtime image would considerably reduce size.
Per the suggestions in the linked issue, a multi-stage image could potentially mitigate this issue.