pleroma/postgresql/Dockerfile

21 lines
391 B
Docker
Raw Normal View History

2021-08-25 08:39:26 -06:00
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