pg 12 and sutty's repository

This commit is contained in:
f 2020-07-27 16:50:21 -03:00
parent 69f4c7d357
commit ab59099d5c

View file

@ -1,22 +1,16 @@
FROM sutty/daemonize:latest AS build
FROM sutty/monit:latest
MAINTAINER "f <f@sutty.nl>"
RUN echo /home/builder/packages/home > /etc/apk/repositories
RUN apk add --no-cache daemonize
FROM sutty/monit:latest
ENV PGBASE /var/lib/postgresql
ENV PGDATA $PGBASE/11/data
ENV PGDATA $PGBASE/12/data
ENV LANG en_US.utf8
ENV PGUSER sutty
ENV PGDB sutty
ENV PGVER 11
ENV PGVER 12
ENV PGCLIENT sutty
RUN apk add --no-cache postgresql postgresql-contrib
RUN apk add --no-cache postgresql postgresql-contrib daemonize
COPY --from=build /usr/sbin/daemonize /usr/sbin/daemonize
COPY ./postgresql.sh /usr/local/bin/postgresql
COPY ./monit.conf /etc/monit.d/postgresql.conf