blackbirdchess-docker-dev/postgres-postgis/Dockerfile

28 lines
633 B
Docker
Raw Normal View History

2021-12-21 11:50:43 +01:00
ARG POSTGRES_VERSION=latest
2021-12-21 11:41:46 +01:00
FROM postgis/postgis:${POSTGRES_VERSION}
2016-11-08 14:17:23 +01:00
2018-03-16 14:09:15 +01:00
LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
2017-03-26 09:56:55 +02:00
2021-12-22 09:17:25 +01:00
ARG INSTALL_PGSQL_HTTP_FOR_POSTGIS13=false
2021-12-21 11:50:43 +01:00
RUN if [ ${INSTALL_PGSQL_HTTP_FOR_POSTGIS13} = true ]; then \
apt-get clean \
&& apt-get update -yqq \
&& apt-get install -y \
git \
make \
2021-12-21 11:58:32 +01:00
gcc \
2021-12-21 11:50:43 +01:00
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
2016-11-08 14:17:23 +01:00
CMD ["postgres"]
2017-03-26 09:56:55 +02:00
EXPOSE 5432