File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -20,14 +20,23 @@ RUN apt-get -y install \
20
20
build-essential \
21
21
python3-pip \
22
22
python3-dev \
23
- postgresql-client \
24
23
libmysqlclient-dev \
25
24
libfreetype6 \
26
25
libjpeg-dev \
27
26
sqlite \
28
27
netcat \
29
28
telnet
30
29
30
+ # https://www.postgresql.org/download/linux/ubuntu/
31
+ # Use PostgreSQL client 12 from official PostgreSQL Ubuntu's repository to avoid this WARNING
32
+ # WARNING: psql major version 10, server major version 12.
33
+ # Some psql features might not work.
34
+ # TODO: remove this when upgrading to Ubuntu 20.04 LTS
35
+ RUN sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
36
+ RUN curl -s https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
37
+ RUN apt-get -y update
38
+ RUN apt-get -y install postgresql-client-12
39
+
31
40
# Uncomment en_US.UTF-8 locale and generate it
32
41
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
33
42
locale-gen
You can’t perform that action at this time.
0 commit comments