fix python install in container

This commit is contained in:
C.J. May 2025-01-08 00:27:05 -06:00 committed by GitHub
parent 2e96ea790f
commit 9ea82ca1ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 []