Public | Automated Build

Last pushed: 5 days ago
Dockerfile
FROM postgres:9.2-alpine MAINTAINER Régis Belson <me@regisbelson.fr> ENV POSTGIS_VERSION 2.3.2 ENV POSTGIS_SHA256 7e82c6994acc80c9f6ea57c0c4a1e0f9372c9fa314c9da148486f395bd1dced9 RUN set -ex \ \ && apk add --no-cache --virtual .fetch-deps \ ca-certificates \ openssl \ tar \ \ && wget -O postgis.tar.gz "https://github.com/postgis/postgis/archive/$POSTGIS_VERSION.tar.gz" \ && echo "$POSTGIS_SHA256 *postgis.tar.gz" | sha256sum -c - \ && mkdir -p /usr/src/postgis \ && tar \ --extract \ --file postgis.tar.gz \ --directory /usr/src/postgis \ --strip-components 1 \ && rm postgis.tar.gz \ \ && apk add --no-cache --virtual .build-deps \ autoconf \ automake \ g++ \ json-c-dev \ libtool \ libxml2-dev \ make \ perl \ \ && apk add --no-cache --virtual .build-deps-testing \ --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \ gdal-dev \ geos-dev \ proj4-dev \ && cd /usr/src/postgis \ && ./autogen.sh \ # configure options taken from: # https://anonscm.debian.org/cgit/pkg-grass/postgis.git/tree/debian/rules?h=jessie && ./configure \ # --with-gui \ && make \ && make install \ && apk add --no-cache --virtual .postgis-rundeps \ json-c \ && apk add --no-cache --virtual .postgis-rundeps-testing \ --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \ geos \ gdal \ proj4 \ && cd / \ && rm -rf /usr/src/postgis \ && apk del .fetch-deps .build-deps .build-deps-testing COPY ./initdb-postgis.sh /docker-entrypoint-initdb.d/postgis.sh COPY ./update-postgis.sh /usr/local/bin
Source Repository