Browse Source

fix(Dockerfile): add extra-index-url to pip install command

master
lanvent 1 year ago
parent
commit
8205d2552c
4 changed files with 6 additions and 5 deletions
  1. +1
    -1
      channel/chat_channel.py
  2. +2
    -2
      docker/Dockerfile.alpine
  3. +2
    -2
      docker/Dockerfile.latest
  4. +1
    -0
      requirements.txt

+ 1
- 1
channel/chat_channel.py View File

@@ -119,7 +119,7 @@ class ChatChannel(Channel):
pass pass
else: else:
return None return None
content = content.strip()
img_match_prefix = check_prefix(content, conf().get("image_create_prefix")) img_match_prefix = check_prefix(content, conf().get("image_create_prefix"))
if img_match_prefix: if img_match_prefix:
content = content.replace(img_match_prefix, "", 1) content = content.replace(img_match_prefix, "", 1)


+ 2
- 2
docker/Dockerfile.alpine View File

@@ -22,8 +22,8 @@ RUN apk add --no-cache \
&& cd ${BUILD_PREFIX} \ && cd ${BUILD_PREFIX} \
&& cp config-template.json ${BUILD_PREFIX}/config.json \ && cp config-template.json ${BUILD_PREFIX}/config.json \
&& /usr/local/bin/python -m pip install --no-cache --upgrade pip \ && /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 && apk del curl wget


WORKDIR ${BUILD_PREFIX} WORKDIR ${BUILD_PREFIX}


+ 2
- 2
docker/Dockerfile.latest View File

@@ -13,8 +13,8 @@ RUN apk add --no-cache bash ffmpeg espeak \
&& cd ${BUILD_PREFIX} \ && cd ${BUILD_PREFIX} \
&& cp config-template.json config.json \ && cp config-template.json config.json \
&& /usr/local/bin/python -m pip install --no-cache --upgrade pip \ && /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} WORKDIR ${BUILD_PREFIX}




+ 1
- 0
requirements.txt View File

@@ -4,4 +4,5 @@ PyQRCode>=1.2.1
qrcode>=7.4.2 qrcode>=7.4.2
requests>=2.28.2 requests>=2.28.2
chardet>=5.1.0 chardet>=5.1.0
Pillow
pre-commit pre-commit

Loading…
Cancel
Save