From 1f2a2ce26769b6213226b8c43262ab902887344b Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 15 Mar 2023 09:19:27 +0100 Subject: [PATCH] Possibly some optimization --- Dockerfile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index be97d5c..50577a6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,13 +3,11 @@ FROM alpine:latest AS base # Install duplicity # RUN pacman --noconfirm -Syu duplicity python-pip python-pydrive2 -RUN apk add py3-pip -RUN apk add python3-dev -RUN apk add gcc libffi-dev musl-dev -RUN apk add duplicity -RUN apk add rust cargo -RUN pip install pydrive2 -RUN apk del rust musl-dev libffi-dev gcc python3-dev cargo +ENV CARGO_NET_GIT_FETCH_WITH_CLI=true +RUN \ + apk add py3-pip python3-dev gcc libffi-dev musl-dev duplicity rust cargo git && \ + pip install pydrive2 && \ + apk del rust musl-dev libffi-dev gcc python3-dev cargo git WORKDIR /var/lib/duplicity ENV HOME="/var/lib/duplicity"