From 9ea82ca1ee0d31c45bdf4aad32393e04f2467e6f Mon Sep 17 00:00:00 2001 From: "C.J. May" Date: Wed, 8 Jan 2025 00:27:05 -0600 Subject: [PATCH] fix python install in container --- src/Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Dockerfile b/src/Dockerfile index 0966e47..a59ea99 100644 --- a/src/Dockerfile +++ b/src/Dockerfile @@ -1,6 +1,8 @@ FROM restic/restic:0.17.3 -RUN apk update && apk add python3 \ +RUN apk update && apk add \ + python3 \ + py3-pip \ dcron \ mariadb-client \ postgresql-client \ @@ -8,7 +10,8 @@ RUN apk update && apk add python3 \ ADD . /restic-compose-backup WORKDIR /restic-compose-backup -RUN pip3 install -U pip setuptools wheel && pip3 install -e . +RUN pip install -U pip setuptools wheel --break-system-packages && \ + pip install -e . --break-system-packages ENV XDG_CACHE_HOME=/cache ENTRYPOINT []