From ad0496f0d28a2b329bc68a453413085de3325e47 Mon Sep 17 00:00:00 2001
From: Stefano Pigozzi <me@steffo.eu>
Date: Sun, 14 May 2023 18:13:13 +0200
Subject: [PATCH] Add proper python cryptography requirements

---
 Dockerfile | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 50577a6..0da1fa9 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -5,9 +5,10 @@ FROM alpine:latest AS base
 # RUN pacman --noconfirm -Syu duplicity python-pip python-pydrive2
 ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
 RUN \
-  apk add py3-pip python3-dev gcc libffi-dev musl-dev duplicity rust cargo git && \
+  apk add py3-pip python3-dev gcc libffi-dev musl-dev openssl-dev pkgconfig duplicity rust cargo git && \
+  pip install --upgrade pip && \
   pip install pydrive2 && \
-  apk del rust musl-dev libffi-dev gcc python3-dev cargo git
+  apk del rust musl-dev libffi-dev gcc python3-dev cargo git pkgconfig openssl-dev
 
 WORKDIR /var/lib/duplicity
 ENV HOME="/var/lib/duplicity"
@@ -29,5 +30,3 @@ COPY ./backup.sh /etc/periodic/daily/backup.sh
 # Configure duplicity
 ENV DUPLICITY_FULL_IF_OLDER_THAN=1M
 
-# Final!
-FROM base AS final