FROM postgres:9.5 MAINTAINER Piero Toffanin ENV POSTGIS_MAJOR 2.3 RUN apt-get update \ && apt-get install -y --no-install-recommends \ postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \ postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR-scripts \ postgis \ && rm -rf /var/lib/apt/lists/* EXPOSE 5432 COPY init.sql /docker-entrypoint-initdb.d/init-db.sql