Skip to content

A Docker build based on the official postgres but using alpine 3.4 to reduce size.

Notifications You must be signed in to change notification settings

deinspanjer/docker-postgres95-alpine34

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

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

About

A Docker build based on the official postgres but using alpine 3.4 to reduce size.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages