Update Dockerfile

Added  --break-system-packages  to pip3 lines to fix error on Debian and Ubuntu
This commit is contained in:
panosnl 2024-01-02 14:37:37 +01:00 committed by GitHub
parent 1d5f929db2
commit 9cc66126d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -32,11 +32,11 @@ RUN apk --no-cache update && \
apk add --no-cache jpeg-dev && \
apk add --no-cache build-base && \
apk add --no-cache python3-dev && \
pip3 install --no-cache-dir requests && \
pip3 install --no-cache-dir flask && \
pip3 install --no-cache-dir PyYAML && \
pip3 install --no-cache-dir Pillow && \
pip3 install --no-cache-dir olefile && \
pip3 install --no-cache-dir requests --break-system-packages && \
pip3 install --no-cache-dir flask --break-system-packages && \
pip3 install --no-cache-dir PyYAML --break-system-packages && \
pip3 install --no-cache-dir Pillow --break-system-packages && \
pip3 install --no-cache-dir olefile --break-system-packages && \
mkdir /opt/ycast && \
apk del --no-cache python3-dev && \
apk del --no-cache build-base && \
@ -49,7 +49,7 @@ RUN apk --no-cache update && \
# curl -L https://codeload.github.com/MaartenSanders/YCast/tar.gz/$YC_VERSION \
| tar xvzC /opt/ycast && \
apk del --no-cache curl && \
pip3 uninstall --no-cache-dir -y setuptools && \
pip3 uninstall --no-cache-dir -y setuptools --break-system-packages && \
# pip3 uninstall --no-cache-dir -y pip && \
find /usr/lib -name \*.pyc -exec rm -f {} \; && \
# find /usr/share/terminfo -type f -not -name xterm -exec rm -f {} \; && \