laradock/postgres-postgis/Dockerfile

26 lines
589 B
Docker
Raw Normal View History

2021-12-21 18:50:43 +08:00
ARG POSTGRES_VERSION=latest
2021-12-21 18:41:46 +08:00
FROM postgis/postgis:${POSTGRES_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-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