configure
517 Bytes
#!/bin/sh
set -e
mkdir /usr/share/man/man1 /usr/share/man/man7
cp /tmp/files/no-suggests-recommends.conf /etc/apt/apt.conf.d/no-suggests-recommends
apt-get update
apt-get install -y postgresql-9.6 \
$POSTGRESQL_EXTRA_PACKAGES \
&& true
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
mkdir /var/lib/container
tar -cC /var/lib/postgresql/ . | gzip -9v > /var/lib/container/var_lib_postgresql.tar.gz
rm -rf /var/lib/postgresql
mkdir /var/lib/postgresql
cp -a /tmp/files/entrypoint /sbin
rm -rf /tmp/files