feat: container support proxy with tag 1.0.4

This commit is contained in:
limccn
2023-03-07 14:42:53 +08:00
parent ad7ab088fe
commit 494c5a6222
7 changed files with 74 additions and 61 deletions

View File

@@ -1,10 +1,15 @@
#!/bin/bash
CHATGPT_ON_WECHAT_TAG=1.0.2
# fetch latest release tag
CHATGPT_ON_WECHAT_TAG=`curl -sL "https://api.github.com/repos/zhayujie/chatgpt-on-wechat/releases/latest" | \
grep '"tag_name":' | \
sed -E 's/.*"([^"]+)".*/\1/'`
# build image
docker build -f Dockerfile.alpine \
--build-arg CHATGPT_ON_WECHAT_VER=$CHATGPT_ON_WECHAT_TAG \
-t zhayujie/chatgpt-on-wechat .
# tag image
docker tag zhayujie/chatgpt-on-wechat zhayujie/chatgpt-on-wechat:$CHATGPT_ON_WECHAT_TAG-alpine