OpenDroneMap-WebODM/db/Dockerfile

18 wiersze
604 B
Docker
Czysty Zwykły widok Historia

FROM postgres:9.5
2016-09-11 23:52:31 +00:00
MAINTAINER Piero Toffanin <pt@masseranolabs.com>
ENV POSTGIS_MAJOR 2.3
2019-10-22 23:27:34 +00:00
RUN . /etc/os-release \
2019-10-22 23:21:57 +00:00
&& echo "deb http://deb.debian.org/debian "$VERSION_CODENAME"-backports main" >> /etc/apt/sources.list \
&& 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/*
2016-09-11 23:52:31 +00:00
EXPOSE 5432
COPY init.sql /docker-entrypoint-initdb.d/init-db.sql
RUN chmod 644 /docker-entrypoint-initdb.d/init-db.sql