[skip-ci] further improvements docker image building
This commit is contained in:
parent
1fee39b308
commit
ce1a629ba3
1 changed files with 4 additions and 4 deletions
|
@ -7,10 +7,10 @@ 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
|
||||
|
||||
|
|
Loading…
Reference in a new issue