A Docker build based on the official postgres but using alpine 3.4 to reduce size.
The package installation portion is much simpler than the debian based one found in the official Postgres version. After installing packages, it performs the other actions similar to the offical image.
The entrypoint script is also very similar to the official image. Changes of interest are:
- Uses su-exec instead of gosu since su-exec is available as a package in Alpine
- Adds an include_if_exists directive to the $PGDATA/postgresql.conf file so the user can put their own config in /etc/postgresql/postgresql.conf