2019-11-04 22:25:09 +01:00
|
|
|
FROM debian:buster
|
2018-11-19 21:36:34 +01:00
|
|
|
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/
|
2019-11-04 22:25:09 +01:00
|
|
|
COPY pg_hba.conf /etc/postgresql/11/main/pg_hba.conf
|
2018-11-19 21:36:34 +01:00
|
|
|
COPY startup.sh /srv/
|
2020-03-02 15:50:46 +01:00
|
|
|
HEALTHCHECK CMD su postgres -c 'pg_isready -d postgres'
|
2018-11-19 21:36:34 +01:00
|
|
|
|
|
|
|
ENTRYPOINT ["dumb-init"]
|
|
|
|
CMD "/srv/startup.sh"
|