A Docker build based on the official postgres but using alpine 3.4 to reduce size.
See the official docker-library for postgres docs for usage readme and their original Dockerfile for more details.
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