Commit 1f6c780c authored by Dmitrii Scurtu's avatar Dmitrii Scurtu

changed postgres version

parent 4bf5ddc3
Pipeline #24458 failed with stage
in 58 seconds
FROM postgres:10-alpine
FROM postgres:10.12
MAINTAINER SteelKiwi Inc.
ENV POSTGIS_VERSION 2.5.2
RUN apt-get update && apt-get install -y --no-install-recommends \
postgresql-10-postgis-2.5 &&\
rm -rf /var/lib/apt/lists/*
RUN set -ex && apk --update add --no-cache \
--repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \
--virtual .packages \
make \
geos-dev \
proj-dev \
gdal-dev \
json-c-dev \
g++ \
perl \
libxml2-dev
RUN set -ex && mkdir /tmp/postgis \
&& wget -O postgis.tar.gz "https://download.osgeo.org/postgis/source/postgis-$POSTGIS_VERSION.tar.gz" \
&& tar --extract \
--file postgis.tar.gz \
--directory /tmp/postgis \
--strip-components 1 \
&& rm postgis.tar.gz \
&& cd /tmp/postgis \
&& ./configure \
&& make \
&& make install \
&& rm -rf /tmp/postgis \
&& apk del .packages
RUN set -ex && apk add --no-cache \
--repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \
geos \
proj \
gdal \
json-c \
libxml2
COPY postgis/postgis.sh /docker-entrypoint-initdb.d/postgis.sh
COPY postgis.sh /docker-entrypoint-initdb.d/postgis.sh
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment