From ce1a629ba3200cb204b575ccf2cf189a45a8bd99 Mon Sep 17 00:00:00 2001 From: Mirco Date: Wed, 6 Dec 2023 17:08:41 +0100 Subject: [PATCH] [skip-ci] further improvements docker image building --- infrastructure/docker/image/resources/install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/infrastructure/docker/image/resources/install.sh b/infrastructure/docker/image/resources/install.sh index 781fe16..a26fb6d 100755 --- a/infrastructure/docker/image/resources/install.sh +++ b/infrastructure/docker/image/resources/install.sh @@ -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/