Adds edge version. Fixes #10.
This commit is contained in:
35
edge/Dockerfile
Normal file
35
edge/Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user