From e8cfdfd260b38b76c7f8350d0ca080288742b89d Mon Sep 17 00:00:00 2001 From: Greg Date: Wed, 15 Jun 2022 15:31:45 -0400 Subject: [PATCH] upgrade to jammy to get postgres-14 for free, and avoid apt-key error --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 067e8cc..1e4b0e1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \