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

View File

@@ -1,4 +1,4 @@
FROM ubuntu:20.04 AS compiler-common
FROM ubuntu:22.04 AS compiler-common
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
@@ -16,9 +16,7 @@ RUN apt-get update \
###########################################################################################################
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 \
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
&& apt-get update \
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
postgresql-server-dev-14 \
libxml2-dev \