bookwyrm/postgres-docker/Dockerfile

11 lines
257 B
Docker
Raw Normal View History

FROM postgres:latest
# crontab
RUN mkdir /backups
2020-10-28 23:10:50 +00:00
COPY ./backup.sh /backups
COPY ./cronfile /etc/cron.d/cronfile
RUN apt-get update && apt-get -y install cron
2020-10-28 23:10:50 +00:00
RUN chmod 0644 /etc/cron.d/cronfile
RUN crontab /etc/cron.d/cronfile
RUN touch /var/log/cron.log