remove last remnants of Paths, now only 1 directory per path AND created a new db-container subdir that takes the latest postgres image and adds a crontab / uses cron to run a bkup_users.sh script that dumps the person, refimg and linkage table so that if we ever blow the DB away, we dont lose the users

This commit is contained in:
2022-09-17 22:40:50 +10:00
parent 19bd4285e1
commit 71ec54807a
7 changed files with 36 additions and 40 deletions

View File

@@ -13,5 +13,6 @@ RUN truncate -s0 /tmp/preseed.cfg && \
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN apt-get update && apt-get -y install cron
COPY crontab /etc/crontab
COPY bkup_users.sh /tmp/
EXPOSE 5432
CMD ["sh", "-c", "cron ; /usr/local/bin/docker-entrypoint.sh postgres"]