Run a random user by default and add rsync support and example.

This commit is contained in:
Werner Beroux
2016-01-23 02:18:13 +01:00
parent 65be5edd0d
commit fa4f399740
2 changed files with 19 additions and 3 deletions

View File

@@ -1,14 +1,17 @@
FROM alpine:3.3
RUN apk add --update duplicity openssl py-crypto py-pip \
RUN apk add --update duplicity openssh openssl py-crypto py-pip rsync \
&& pip install pydrive==1.0.1 \
&& apk del --purge py-pip \
&& rm /var/cache/apk/* \
&& adduser -D -u 1896 duplicity \
&& mkdir -p /home/duplicity/.cache/duplicity \
&& chmod go+rwx /home/duplicity/.cache/duplicity
ENV HOME=/home/duplicity
VOLUME /home/duplicity/.cache/duplicity
USER duplicity
CMD ["duplicity"]