From c6bc9860956166b4de4ca0f8350e9069f397516c Mon Sep 17 00:00:00 2001 From: Valentino Lauciani Date: Tue, 21 Dec 2021 11:50:43 +0100 Subject: [PATCH] Update Dockerfile --- postgres-postgis/Dockerfile | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/postgres-postgis/Dockerfile b/postgres-postgis/Dockerfile index 56ffb31..99b7573 100644 --- a/postgres-postgis/Dockerfile +++ b/postgres-postgis/Dockerfile @@ -1,8 +1,25 @@ -ARG POSTGRES_VERSION=alpine +ARG POSTGRES_VERSION=latest FROM postgis/postgis:${POSTGRES_VERSION} LABEL maintainer="Mahmoud Zalt " +RUN if [ ${INSTALL_PGSQL_HTTP_FOR_POSTGIS13} = true ]; then \ + apt-get clean \ + && apt-get update -yqq \ + && apt-get install -y \ + git \ + make \ + gcc \ + libcurl4-openssl-dev \ + postgresql-server-dev-13 \ + postgresql-13-cron \ + && git clone --recursive https://github.com/pramsey/pgsql-http.git \ + && cd pgsql-http/ \ + && make \ + && make install \ + && apt-get clean \ +;fi + CMD ["postgres"] EXPOSE 5432