Replaced pip breaking installs of dependencies with APK Edge versions

This commit is contained in:
Connor Yoh 2025-02-15 16:58:41 +00:00
parent 27ec4d5a8f
commit 84e0b4caa7
2 changed files with 58 additions and 56 deletions

View File

@ -65,11 +65,11 @@ RUN echo "@testing https://dl-cdn.alpinelinux.org/alpine/edge/main" | tee -a /et
tesseract-ocr-data-eng \ tesseract-ocr-data-eng \
# CV # CV
py3-opencv \ py3-opencv \
# python3/pip
python3 \ python3 \
py3-pip && \ -X https://dl-cdn.alpinelinux.org/alpine/edge/testing py3-unoconv \
# uno unoconv and HTML -X https://dl-cdn.alpinelinux.org/alpine/edge/testing py3-pillow \
pip install --break-system-packages --no-cache-dir --upgrade unoconv WeasyPrint pdf2image pillow && \ -X https://dl-cdn.alpinelinux.org/alpine/edge/testing py3-pdf2image \
-X https://dl-cdn.alpinelinux.org/alpine/edge/community weasyprint && \
mv /usr/share/tessdata /usr/share/tessdata-original && \ mv /usr/share/tessdata /usr/share/tessdata-original && \
mkdir -p $HOME /configs /logs /customFiles /pipeline/watchedFolders /pipeline/finishedFolders && \ mkdir -p $HOME /configs /logs /customFiles /pipeline/watchedFolders /pipeline/finishedFolders && \
fc-cache -f -v && \ fc-cache -f -v && \

View File

@ -70,9 +70,11 @@ RUN echo "@testing https://dl-cdn.alpinelinux.org/alpine/edge/main" | tee -a /et
py3-opencv \ py3-opencv \
# python3/pip # python3/pip
python3 \ python3 \
py3-pip && \ -X https://dl-cdn.alpinelinux.org/alpine/edge/testing py3-unoconv \
-X https://dl-cdn.alpinelinux.org/alpine/edge/testing py3-pillow \
-X https://dl-cdn.alpinelinux.org/alpine/edge/testing py3-pdf2image \
-X https://dl-cdn.alpinelinux.org/alpine/edge/community weasyprint && \
# uno unoconv and HTML # uno unoconv and HTML
pip install --break-system-packages --no-cache-dir --upgrade unoconv WeasyPrint pdf2image pillow && \
mv /usr/share/tessdata /usr/share/tessdata-original && \ mv /usr/share/tessdata /usr/share/tessdata-original && \
mkdir -p $HOME /configs /logs /customFiles /pipeline/watchedFolders /pipeline/finishedFolders && \ mkdir -p $HOME /configs /logs /customFiles /pipeline/watchedFolders /pipeline/finishedFolders && \
fc-cache -f -v && \ fc-cache -f -v && \