Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 974 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 974 Bytes

docker-postgres95-alpine34

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.

Dockerfile

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.

docker-entrypoint.sh

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