13
Dockerfile
13
Dockerfile
@@ -1,4 +1,6 @@
|
|||||||
FROM alpine:3.6
|
FROM alpine:3.7
|
||||||
|
|
||||||
|
ENV HOME=/home/duplicity
|
||||||
|
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& apk add --no-cache \
|
&& apk add --no-cache \
|
||||||
@@ -12,14 +14,15 @@ RUN set -x \
|
|||||||
py-setuptools \
|
py-setuptools \
|
||||||
rsync \
|
rsync \
|
||||||
&& update-ca-certificates \
|
&& update-ca-certificates \
|
||||||
&& pip install pydrive==1.3.1 \
|
&& pip install \
|
||||||
|
pydrive==1.3.1 \
|
||||||
|
fasteners==0.14.1 \
|
||||||
&& apk del --purge py-pip \
|
&& apk del --purge py-pip \
|
||||||
&& adduser -D -u 1896 duplicity \
|
&& adduser -D -u 1896 duplicity \
|
||||||
&& mkdir -p /home/duplicity/.cache/duplicity \
|
&& mkdir -p /home/duplicity/.cache/duplicity \
|
||||||
&& mkdir -p /home/duplicity/.gnupg \
|
&& mkdir -p /home/duplicity/.gnupg \
|
||||||
&& chmod -R go+rwx /home/duplicity/
|
&& chmod -R go+rwx /home/duplicity/ \
|
||||||
|
&& su - duplicity -c 'duplicity --version'
|
||||||
ENV HOME=/home/duplicity
|
|
||||||
|
|
||||||
VOLUME ["/home/duplicity/.cache/duplicity", "/home/duplicity/.gnupg"]
|
VOLUME ["/home/duplicity/.cache/duplicity", "/home/duplicity/.gnupg"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user