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