Adds edge version. Fixes #10.

This commit is contained in:
Werner Beroux
2018-07-02 13:26:40 +02:00
parent 0d97e5e6b2
commit 572437a4d6
7 changed files with 283 additions and 2 deletions

35
edge/Dockerfile Normal file
View File

@@ -0,0 +1,35 @@
FROM alpine:edge
ENV HOME=/home/duplicity
RUN set -x \
&& apk add --no-cache \
ca-certificates \
duplicity \
lftp \
openssh \
openssl \
py-crypto \
py-paramiko \
py-setuptools \
rsync \
&& update-ca-certificates
COPY Pipfile Pipfile.lock /
RUN set -x \
&& apk add --no-cache py-pip \
&& pip install pipenv \
&& pipenv install --system --deploy \
&& 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/ \
&& su - duplicity -c 'duplicity --version'
VOLUME ["/home/duplicity/.cache/duplicity", "/home/duplicity/.gnupg"]
USER duplicity
CMD ["duplicity"]