Dockerfile 631 B

123456789101112131415161718192021222324252627
  1. ARG POSTGIS_VERSION=latest
  2. FROM postgis/postgis:${POSTGIS_VERSION}
  3. LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
  4. ARG INSTALL_PGSQL_HTTP_FOR_POSTGIS13=false
  5. RUN if [ ${INSTALL_PGSQL_HTTP_FOR_POSTGIS13} = true ]; then \
  6. apt-get clean \
  7. && apt-get update -yqq \
  8. && apt-get install -y \
  9. git \
  10. make \
  11. gcc \
  12. libcurl4-openssl-dev \
  13. postgresql-server-dev-13 \
  14. postgresql-13-cron \
  15. && git clone --recursive https://github.com/pramsey/pgsql-http.git \
  16. && cd pgsql-http/ \
  17. && make \
  18. && make install \
  19. && apt-get clean \
  20. ;fi
  21. CMD ["postgres"]
  22. EXPOSE 5432