Open
Description
I noticed that the docker-postgis alpine images are far too big
eg: postgis/postgis 13-3.3-alpine a21d01173429 2 weeks ago 556MB
Cause
The Dockerfile does not use a multi-staged build.
Steps to reproduce:
- Build a docker-postgis alpine image
- eg by using: eg: https://github.com/postgis/docker-postgis/blob/master/13-3.3/alpine/Dockerfile)
Actual result
the final image contains, besides the required postgres & postgis binaries, also unneeded build stuff (g++, gcc, clang-dev, perl, autoconf, automake, etc, etc)
Expected
The final image is much smaller.
Only the required binaries are in the final image. (postgres + postgis)
The intermediate build stuff (compilers etc) are not in the final image.
Metadata
Metadata
Assignees
Labels
No labels