2018-11-19 21:36:34 +01:00
|
|
|
FROM debian:stretch
|
|
|
|
LABEL maintainer "Jan Dittberner <jan@dittberner.info>"
|
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
|
|
dumb-init \
|
|
|
|
postgresql \
|
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*.*
|
|
|
|
|
|
|
|
EXPOSE 5432
|
|
|
|
|
|
|
|
VOLUME /var/lib/postgresql/
|
|
|
|
COPY pg_hba.conf /etc/postgresql/9.6/main/pg_hba.conf
|
|
|
|
COPY startup.sh /srv/
|
2019-07-05 21:11:39 +02:00
|
|
|
HEALTHCHECK CMD pg_isready -d postgres
|
2018-11-19 21:36:34 +01:00
|
|
|
|
|
|
|
ENTRYPOINT ["dumb-init"]
|
|
|
|
CMD "/srv/startup.sh"
|