Dockerfile 590 B

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