[skip-ci] further improvements docker image building

This commit is contained in:
Mirco 2023-12-06 17:08:41 +01:00
parent 1fee39b308
commit ce1a629ba3

View file

@ -7,11 +7,11 @@ function main() {
apt-get update
apt-get upgrade -y
apt-get install -qqy ca-certificates curl gnupg postgresql-client-14
curl -Ss --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | tee /etc/apt/trusted.gpg.d/postgresql-common_pgdg_archive_keyring.gpg
sh -c 'echo "deb [signed-by=/etc/apt/trusted.gpg.d/postgresql-common_pgdg_archive_keyring.gpg] https://apt.postgresql.org/pub/repos/apt jammy-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
apt-get upgrade -y
} > /dev/null
mkdir /usr/share/postgresql-common/pgdg
curl -Sso /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc
sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt jammy-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
update-ca-certificates
install -m 0400 /tmp/functions.sh /usr/local/lib/