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

This commit is contained in:
Greg 2022-06-15 15:31:45 -04:00
parent 5dcb461635
commit e8cfdfd260
No known key found for this signature in database
GPG Key ID: B016D27A4C5E4363

View File

@ -1,4 +1,4 @@
FROM ubuntu:20.04 AS compiler-common FROM ubuntu:22.04 AS compiler-common
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \ RUN apt-get update \
@ -16,9 +16,7 @@ RUN apt-get update \
########################################################################################################### ###########################################################################################################
FROM compiler-common AS compiler-postgis FROM compiler-common AS compiler-postgis
RUN echo "deb http://apt.postgresql.org/pub/repos/apt focal-pgdg main" > /etc/apt/sources.list.d/pgdg.list \ RUN apt-get update \
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
&& apt-get update \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends \
postgresql-server-dev-14 \ postgresql-server-dev-14 \
libxml2-dev \ libxml2-dev \