Skip to content

Commit ab23545

Browse files
committed
Update Ubuntu repository installation.
1 parent 4ffc01a commit ab23545

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

test/Dockerfile.debian

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,8 @@ RUN groupadd -g $GID -o postgres
1616
RUN useradd -m -u $UID -g $GID -o -s /bin/bash postgres
1717

1818
# Add PostgreSQL repository
19-
RUN RELEASE_CODENAME=`lsb_release -c | awk '{print $2}'` && \
20-
echo 'deb http://apt.postgresql.org/pub/repos/apt/ '${RELEASE_CODENAME?}'-pgdg main' | \
21-
tee -a /etc/apt/sources.list.d/pgdg.list
22-
RUN APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 && \
23-
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
24-
RUN apt-get update
19+
RUN apt-get install -y --no-install-recommends postgresql-common
20+
RUN /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y
2521

2622
# Install PostgreSQL
2723
ENV PGVERSION=16

0 commit comments

Comments
 (0)