Skip to content

Commit

Permalink
调整
Browse files Browse the repository at this point in the history
  • Loading branch information
xueandyue committed Jul 21, 2023
1 parent 76c0a87 commit f23cc25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ EXPOSE 8008
# 环境变量
ENV ACCESS_TOKEN=YourToken CODE=YourCode

CMD sh -c 'echo "${ACCESS_TOKEN}" > /app/pandora/token.txt && cd /app/pandora && pandora -s 0.0.0.0:8008 -t token.txt & cd /app/ChatGPT-3.5-AccessToken-Web && yarn start'
CMD sh -c 'echo "${ACCESS_TOKEN}" > /app/pandora/token.txt && cd /app/pandora && pandora -s 0.0.0.0:8008 -t token.txt & cd /app/ChatGPT-3.5-AccessToken-Web && git pull && yarn build && yarn start'


6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@ ChatGPT-Next-Web</a>项目进行修改而得,另外本项目需要的后端服
## 部署
* 确保安装了docker,启动了docker
* ${ACCESS_TOKEN}是ACCESS_TOKEN的值,${CODE}是设置密码,如果CODE=""则表示不设置密码
* 下载本项目:git clone https://github.com/xueandyue/ChatGPT-3.5-AccessToken-Web.git
* cd ChatGPT-3.5-AccessToken-Web
* docker build -t next-web-pandora:v1 .
* docker run -e ACCESS_TOKEN="${ACCESS_TOKEN}" -e CODE="${CODE}" -p 3000:3000 -d next-web-pandora:v1
* docker pull xueandyue/next-web-pandora:v1
* docker run -e ACCESS_TOKEN="${ACCESS_TOKEN}" -e CODE="${CODE}" -p 3000:3000 -d xueandyue/next-web-pandora:v1
* 在浏览器访问http://服务器域名(ip):3000/


Expand Down

0 comments on commit f23cc25

Please sign in to comment.