docker-library / postgres

Docker Official Image packaging for Postgres
http://www.postgresql.org
MIT License
2.18k stars 1.13k forks source link

Use `install` instead of `mkdir && chown && chmod` #1258

Closed tianon closed 3 months ago

tianon commented 3 months ago

Instead of chaining three commands together, we can use a single command that's purpose-built for exactly the thing we're trying to do (pre-create directories with appropriate ownership and permissions).