laradock/postgres-postgis/Dockerfile

28 lines
631 B
Docker
Raw Normal View History

2022-01-21 21:26:39 +08:00
ARG POSTGIS_VERSION=latest
FROM postgis/postgis:${POSTGIS_VERSION}
2016-11-08 21:17:23 +08:00
2018-03-16 21:09:15 +08:00
LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
2017-03-26 15:56:55 +08:00
2021-12-22 16:17:25 +08:00
ARG INSTALL_PGSQL_HTTP_FOR_POSTGIS13=false
2021-12-21 18:50:43 +08: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 18:58:32 +08:00
gcc \
2021-12-21 18:50:43 +08: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 21:17:23 +08:00
CMD ["postgres"]
2017-03-26 15:56:55 +08:00
EXPOSE 5432