Files
docker-duplicity/Dockerfile
2017-01-30 09:52:45 +01:00

19 lines
456 B
Docker

FROM alpine:3.5
RUN set -x \
&&apk add --no-cache duplicity openssh openssl py-crypto py-pip rsync \
&& pip install pydrive==1.3.1 \
&& apk del --purge py-pip \
&& adduser -D -u 1896 duplicity \
&& mkdir -p /home/duplicity/.cache/duplicity \
&& mkdir -p /home/duplicity/.gnupg \
&& chmod -R go+rwx /home/duplicity/
ENV HOME=/home/duplicity
VOLUME ["/home/duplicity/.cache/duplicity", "/home/duplicity/.gnupg"]
USER duplicity
CMD ["duplicity"]