containers-postgresql/Dockerfile

27 lines
604 B
Docker
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
2019-10-01 17:21:23 +00:00
ENV PGCLIENT sutty
2019-09-24 17:04:19 +00:00
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