21 lines
391 B
Docker
21 lines
391 B
Docker
|
FROM ubuntu:rolling
|
||
|
ENV DEBIAN_FRONTEND=noninteractive
|
||
|
RUN apt-get update;apt-get install sudo postgresql -y
|
||
|
|
||
|
WORKDIR /tmp
|
||
|
ENV SHELL="/bin/bash"
|
||
|
|
||
|
ADD start.sh /
|
||
|
ADD setup.sh /
|
||
|
|
||
|
ADD crontab /
|
||
|
RUN crontab /crontab
|
||
|
|
||
|
ADD backup.sh /
|
||
|
|
||
|
#POSTGRES Tweaks
|
||
|
ADD postgresql.conf /etc/postgresql/13/main/
|
||
|
RUN echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/13/main/pg_hba.conf
|
||
|
|
||
|
CMD bash /start.sh
|