containers-postgresql/Dockerfile

26 lines
585 B
Text
Raw Normal View History

2019-09-24 17:04:19 +00:00
FROM sutty/daemonize:latest AS build
2019-09-10 23:10:18 +00:00
MAINTAINER "f <f@sutty.nl>"
2019-09-24 17:04:19 +00:00
RUN echo /home/builder/packages/home > /etc/apk/repositories
RUN apk add --no-cache daemonize
FROM sutty/monit:latest
2019-09-24 17:29:43 +00:00
ENV PGBASE /var/lib/postgresql
ENV PGDATA $PGBASE/11/data
2019-09-24 17:04:19 +00:00
ENV LANG en_US.utf8
ENV PGUSER sutty
ENV PGDB sutty
ENV PGVER 11
RUN apk add --no-cache postgresql postgresql-contrib
COPY --from=build /usr/sbin/daemonize /usr/sbin/daemonize
COPY ./postgresql.sh /usr/local/bin/postgresql
COPY ./monit.conf /etc/monit.d/postgresql.conf
RUN chmod 750 /usr/local/bin/postgresql
EXPOSE 5432
2019-09-24 17:29:43 +00:00
VOLUME $PGBASE