You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819
  1. FROM robinthoni/postgres-multiarch:9.6
  2. RUN apt-get update && apt-get -y install\
  3. cron &&\
  4. apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  5. COPY ./backup/pg_backup.config /etc/pg_backup.config
  6. COPY ./backup/pg_backup_rotated.sh /usr/local/bin/pg_backup_rotated.sh
  7. COPY ./backup/pg_backup_rotated.cron.sh /etc/cron.daily/pg_backup_rotated
  8. COPY ./run.sh /run.sh
  9. VOLUME "/var/lib/postgresql/backup"
  10. ENTRYPOINT ["/run.sh"]
  11. CMD ["postgres"]