Ver Fonte

Update pillow

Tulir Asokan há 1 ano atrás
pai
commit
7e7299dc98
2 ficheiros alterados com 5 adições e 3 exclusões
  1. 4 2
      Dockerfile
  2. 1 1
      optional-requirements.txt

+ 4 - 2
Dockerfile

@@ -2,7 +2,7 @@ FROM docker.io/alpine:3.18
 
 RUN apk add --no-cache \
       python3 py3-pip py3-setuptools py3-wheel \
-      py3-pillow \
+      #py3-pillow \
       py3-aiohttp \
       py3-magic \
       py3-ruamel.yaml \
@@ -25,7 +25,9 @@ RUN apk add --no-cache \
       bash \
       curl \
       jq \
-      yq
+      yq \
+  # Temporarily install pillow from edge repo to get up-to-date version
+  && apk add --no-cache py3-pillow --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community
 
 COPY requirements.txt /opt/mautrix-instagram/requirements.txt
 COPY optional-requirements.txt /opt/mautrix-instagram/optional-requirements.txt

+ 1 - 1
optional-requirements.txt

@@ -13,7 +13,7 @@ pysocks
 aiohttp-socks
 
 #/imageconvert
-pillow>=4,<10
+pillow>=10.0.1,<11
 
 #/sqlite
 aiosqlite>=0.16,<0.20