forked from heyman/postgresql-backup
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (19 loc) · 638 Bytes
/
Dockerfile
File metadata and controls
25 lines (19 loc) · 638 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM heyman/postgresql
MAINTAINER Jonatan Heyman <http://heyman.info>
RUN apt-get update && apt-get install -y \
python \
python2.7 \
python-dev \
python-setuptools \
unzip
RUN curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
RUN unzip awscli-bundle.zip
RUN ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
RUN aws configure set default.s3.signature_version s3v4
RUN rm -rf awscli-bundle.zip awscli-bundle
VOLUME ["/data/backups"]
ENV BACKUP_DIR /data/backups
ADD . /backup
RUN touch /backup.log
ENTRYPOINT ["/backup/entrypoint.sh"]
CMD cron && tail -f /backup.log