Skip to content

Commit 61af0db

Browse files
committed
Ubuntu 22.04 has postgresql-client 14
1 parent 19dcb1d commit 61af0db

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

dockerfiles/Dockerfile

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,12 @@ RUN apt-get -y install \
2424
libmysqlclient-dev \
2525
libfreetype6 \
2626
libjpeg-dev \
27+
postgresql-client \
2728
sqlite \
2829
netcat \
2930
telnet \
3031
lsb-release
3132

32-
# https://www.postgresql.org/download/linux/ubuntu/
33-
# Use PostgreSQL client 12 from official PostgreSQL Ubuntu's repository to avoid this WARNING
34-
# WARNING: psql major version 10, server major version 12.
35-
# Some psql features might not work.
36-
# TODO: remove this when upgrading to Ubuntu 20.04 LTS
37-
RUN sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
38-
RUN curl -s https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
39-
RUN apt-get -y update
40-
RUN apt-get -y install postgresql-client-12
41-
4233
# Uncomment en_US.UTF-8 locale and generate it
4334
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
4435
locale-gen

0 commit comments

Comments
 (0)