2021-11-02 13:10:27 -06:00
|
|
|
FROM alpine
|
|
|
|
RUN apk update;apk add bash sudo postgresql postgresql-contrib
|
2021-08-25 08:39:26 -06:00
|
|
|
|
|
|
|
WORKDIR /tmp
|
|
|
|
ENV SHELL="/bin/bash"
|
|
|
|
|
|
|
|
ADD start.sh /
|
|
|
|
ADD setup.sh /
|
|
|
|
|
|
|
|
ADD crontab /
|
|
|
|
RUN crontab /crontab
|
|
|
|
|
|
|
|
ADD backup.sh /
|
|
|
|
|
|
|
|
#POSTGRES Tweaks
|
2021-11-02 13:10:27 -06:00
|
|
|
COPY postgresql.conf /etc/
|
|
|
|
#RUN echo "host all all 0.0.0.0/0 md5" >> /var/lib/postgresql/data/main/pg_hba.conf
|
2021-08-25 08:39:26 -06:00
|
|
|
|
|
|
|
CMD bash /start.sh
|