From b78a20d91211c1dc9aa21ba645bcdc59c30bfd7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Wed, 2 Mar 2022 02:26:13 +0100 Subject: [PATCH] method to install duplicity itself; purge cargo artifacts --- Dockerfile | 9 ++++++--- requirements.txt | 4 ---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 07ba3e7..93e1af8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,6 @@ FROM yavook/kiwi-cron:0.1 AS deps LABEL maintainer="jmm@yavook.de" -# Previous work: https://github.com/wernight/docker-duplicity - RUN set -ex; \ \ # create backup source @@ -48,15 +46,20 @@ RUN set -ex; \ install wheel \ ; \ \ + # install duplicity python3 -m pip --no-cache-dir \ install -r /tmp/requirements.txt \ ; \ + python3 -m pip --no-cache-dir \ + install duplicity \ + ; \ \ # remove buildtime dependencies python3 -m pip --no-cache-dir \ uninstall -y wheel \ ; \ - apk del --purge .build-deps; + apk del --purge .build-deps; \ + rm -rf "${USER}/.cargo"; RUN set -ex; \ \ diff --git a/requirements.txt b/requirements.txt index 365df1a..3bb3b2b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,3 @@ -##### main app ##### - -duplicity==0.8.21 - # dependencies as per # https://gitlab.com/duplicity/duplicity/-/blob/rel.0.8.21/requirements.txt