We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ffc01a commit ab23545Copy full SHA for ab23545
1 file changed
test/Dockerfile.debian
@@ -16,12 +16,8 @@ RUN groupadd -g $GID -o postgres
16
RUN useradd -m -u $UID -g $GID -o -s /bin/bash postgres
17
18
# 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
+RUN apt-get install -y --no-install-recommends postgresql-common
+RUN /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y
25
26
# Install PostgreSQL
27
ENV PGVERSION=16
0 commit comments