upgrade to jammy to get postgres-14 for free, and avoid apt-key error

This commit is contained in:
Greg 2022-06-15 15:49:50 -04:00
parent b8e53b5332
commit c9a2ad50e6
No known key found for this signature in database
GPG Key ID: B016D27A4C5E4363

View File

@ -120,6 +120,7 @@ RUN apt-get update \
npm \
osmium-tool \
osmosis \
postgresql-14 \
python-is-python3 \
python3-mapnik \
python3-lxml \
@ -129,10 +130,6 @@ RUN apt-get update \
sudo \
ttf-unifont \
wget \
&& echo "deb http://apt.postgresql.org/pub/repos/apt focal-pgdg main" > /etc/apt/sources.list.d/pgdg.list \
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
&& apt-get update \
&& apt-get install -y --no-install-recommends postgresql-14 \
&& apt-get clean autoclean \
&& apt-get autoremove --yes \
&& rm -rf /var/lib/{apt,dpkg,cache,log}/