Skip to content

Commit 23ebc0e

Browse files
committed
Ubuntu 22.04 has postgresql-client 14
1 parent 1a3985d commit 23ebc0e

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
@@ -23,21 +23,12 @@ RUN apt-get -y install \
2323
libmysqlclient-dev \
2424
libfreetype6 \
2525
libjpeg-dev \
26+
postgresql-client \
2627
sqlite \
2728
netcat \
2829
telnet \
2930
lsb-release
3031

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

0 commit comments

Comments
 (0)