diff --git a/channel/chat_channel.py b/channel/chat_channel.py index b3df906..d57cdb5 100644 --- a/channel/chat_channel.py +++ b/channel/chat_channel.py @@ -119,7 +119,7 @@ class ChatChannel(Channel): pass else: return None - + content = content.strip() img_match_prefix = check_prefix(content, conf().get("image_create_prefix")) if img_match_prefix: content = content.replace(img_match_prefix, "", 1) diff --git a/docker/Dockerfile.alpine b/docker/Dockerfile.alpine index 324a76e..61f80c2 100644 --- a/docker/Dockerfile.alpine +++ b/docker/Dockerfile.alpine @@ -22,8 +22,8 @@ RUN apk add --no-cache \ && cd ${BUILD_PREFIX} \ && cp config-template.json ${BUILD_PREFIX}/config.json \ && /usr/local/bin/python -m pip install --no-cache --upgrade pip \ - && pip install --no-cache -r requirements.txt \ - && pip install --no-cache -r requirements-optional.txt \ + && pip install --no-cache -r requirements.txt --extra-index-url https://alpine-wheels.github.io/index\ + && pip install --no-cache -r requirements-optional.txt --extra-index-url https://alpine-wheels.github.io/index\ && apk del curl wget WORKDIR ${BUILD_PREFIX} diff --git a/docker/Dockerfile.latest b/docker/Dockerfile.latest index c9a5a55..432075c 100644 --- a/docker/Dockerfile.latest +++ b/docker/Dockerfile.latest @@ -13,8 +13,8 @@ RUN apk add --no-cache bash ffmpeg espeak \ && cd ${BUILD_PREFIX} \ && cp config-template.json config.json \ && /usr/local/bin/python -m pip install --no-cache --upgrade pip \ - && pip install --no-cache -r requirements.txt \ - && pip install --no-cache -r requirements-optional.txt + && pip install --no-cache -r requirements.txt --extra-index-url https://alpine-wheels.github.io/index\ + && pip install --no-cache -r requirements-optional.txt --extra-index-url https://alpine-wheels.github.io/index WORKDIR ${BUILD_PREFIX} diff --git a/requirements.txt b/requirements.txt index c47df1e..91c1756 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,5 @@ PyQRCode>=1.2.1 qrcode>=7.4.2 requests>=2.28.2 chardet>=5.1.0 +Pillow pre-commit \ No newline at end of file