IMAGE postgres_12.1.0-200207 FROM alpine3.11_3.11.3-200207 RUN EOF # Install PostgreSQL apk --no-cache add postgresql postgresql-contrib # Create socket directory mkdir /run/postgresql chown postgres:postgres /run/postgresql EOF USER postgres CMD postgres -D /var/lib/postgresql READY pg_isready