The image size is somewhat large (>500mb) and has too many layers. While this is OK for now, we should aim to reduce the size of the image. A few things that we can do, inspired by the official PHP Docker image repository is to ensure that we remove the source files after we've installed PHP and to install build dependencies and subsequently remove them in the same RUN command.
The image size is somewhat large (>500mb) and has too many layers. While this is OK for now, we should aim to reduce the size of the image. A few things that we can do, inspired by the official PHP Docker image repository is to ensure that we remove the source files after we've installed PHP and to install build dependencies and subsequently remove them in the same
RUNcommand.