-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:zhayujie/chatgpt-on-wechat
- Loading branch information
Showing
8 changed files
with
58 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ FROM python:3.7.9-alpine | |
LABEL maintainer="[email protected]" | ||
ARG TZ='Asia/Shanghai' | ||
|
||
ARG CHATGPT_ON_WECHAT_VER=1.0.0 | ||
ARG CHATGPT_ON_WECHAT_VER=1.0.2 | ||
|
||
ENV BUILD_PREFIX=/app \ | ||
BUILD_OPEN_AI_API_KEY='YOUR OPEN AI KEY HERE' | ||
|
@@ -12,7 +12,11 @@ RUN apk add --no-cache \ | |
bash \ | ||
curl \ | ||
wget \ | ||
openssh | ||
gcc \ | ||
g++ \ | ||
ca-certificates \ | ||
openssh \ | ||
libffi-dev | ||
|
||
RUN wget -t 3 -T 30 -nv -O chatgpt-on-wechat-${CHATGPT_ON_WECHAT_VER}.tar.gz \ | ||
https://github.com/zhayujie/chatgpt-on-wechat/archive/refs/tags/${CHATGPT_ON_WECHAT_VER}.tar.gz \ | ||
|
@@ -26,9 +30,11 @@ RUN cd ${BUILD_PREFIX} \ | |
&& cp config-template.json ${BUILD_PREFIX}/config.json \ | ||
&& sed -i "2s/YOUR API KEY/${BUILD_OPEN_AI_API_KEY}/" ${BUILD_PREFIX}/config.json | ||
|
||
RUN /usr/local/bin/python -m pip install --upgrade pip \ | ||
&& pip install itchat-uos==1.5.0.dev0 \ | ||
&& pip install --upgrade openai | ||
RUN /usr/local/bin/python -m pip install --no-cache --upgrade pip \ | ||
&& pip install --no-cache \ | ||
itchat-uos==1.5.0.dev0 \ | ||
openai \ | ||
wechaty | ||
|
||
ADD ./entrypoint.sh /entrypoint.sh | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ FROM python:3.7.9 | |
LABEL maintainer="[email protected]" | ||
ARG TZ='Asia/Shanghai' | ||
|
||
ARG CHATGPT_ON_WECHAT_VER=1.0.0 | ||
ARG CHATGPT_ON_WECHAT_VER=1.0.2 | ||
|
||
ENV BUILD_PREFIX=/app \ | ||
BUILD_OPEN_AI_API_KEY='YOUR OPEN AI KEY HERE' | ||
|
@@ -26,9 +26,11 @@ RUN cd ${BUILD_PREFIX} \ | |
&& cp config-template.json ${BUILD_PREFIX}/config.json \ | ||
&& sed -i "2s/YOUR API KEY/${BUILD_OPEN_AI_API_KEY}/" ${BUILD_PREFIX}/config.json | ||
|
||
RUN /usr/local/bin/python -m pip install --upgrade pip \ | ||
&& pip install itchat-uos==1.5.0.dev0 \ | ||
&& pip install --upgrade openai | ||
RUN /usr/local/bin/python -m pip install --no-cache --upgrade pip \ | ||
&& pip install --no-cache \ | ||
itchat-uos==1.5.0.dev0 \ | ||
openai \ | ||
wechaty | ||
|
||
ADD ./entrypoint.sh /entrypoint.sh | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
#!/bin/bash | ||
|
||
CHATGPT_ON_WECHAT_TAG=1.0.2 | ||
|
||
docker build -f Dockerfile.alpine \ | ||
--build-arg CHATGPT_ON_WECHAT_VER=1.0.0\ | ||
-t zhayujie/chatgpt-on-wechat:1.0.0-alpine . | ||
--build-arg CHATGPT_ON_WECHAT_VER=$CHATGPT_ON_WECHAT_TAG \ | ||
-t zhayujie/chatgpt-on-wechat . | ||
|
||
docker tag zhayujie/chatgpt-on-wechat zhayujie/chatgpt-on-wechat:$CHATGPT_ON_WECHAT_TAG-alpine | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
#!/bin/bash | ||
|
||
CHATGPT_ON_WECHAT_TAG=1.0.2 | ||
|
||
docker build -f Dockerfile.debian \ | ||
--build-arg CHATGPT_ON_WECHAT_VER=1.0.0\ | ||
-t zhayujie/chatgpt-on-wechat:1.0.0-debian . | ||
--build-arg CHATGPT_ON_WECHAT_VER=$CHATGPT_ON_WECHAT_TAG \ | ||
-t zhayujie/chatgpt-on-wechat . | ||
|
||
docker tag zhayujie/chatgpt-on-wechat zhayujie/chatgpt-on-wechat:$CHATGPT_ON_WECHAT_TAG-debian |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
zhayujie/chatgpt-on-wechat:1.0.0-alpine | ||
zhayujie/chatgpt-on-wechat |