Dockerfile 407 B

123456789101112131415161718192021
  1. FROM postgres:10-alpine
  2. # Install dependencies
  3. RUN apk update && apk add --no-cache --virtual .build-deps && apk add \
  4. bash make curl openssh git
  5. # Install aws-cli
  6. RUN apk -Uuv add groff less python2 python3 py-pip && pip install awscli
  7. # Cleanup
  8. RUN rm /var/cache/apk/*
  9. VOLUME ["/data/backups"]
  10. ENV BACKUP_DIR /data/backups
  11. ADD . /backup
  12. ENTRYPOINT ["/backup/entrypoint.sh"]
  13. CMD crond -f -l 2