Update Dockerfile

This commit is contained in:
Valentino Lauciani 2021-12-21 11:50:43 +01:00 committed by GitHub
parent 3d2f8074d3
commit c6bc986095
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,25 @@
ARG POSTGRES_VERSION=alpine ARG POSTGRES_VERSION=latest
FROM postgis/postgis:${POSTGRES_VERSION} FROM postgis/postgis:${POSTGRES_VERSION}
LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>" LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
RUN if [ ${INSTALL_PGSQL_HTTP_FOR_POSTGIS13} = true ]; then \
apt-get clean \
&& apt-get update -yqq \
&& apt-get install -y \
git \
make \
gcc \
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
CMD ["postgres"] CMD ["postgres"]
EXPOSE 5432 EXPOSE 5432