feat: #27 add docker image publish actions

This commit is contained in:
Yifei Zhang 2023-03-27 14:34:46 +00:00
parent 0463b350d8
commit cc1a1d4f3c
2 changed files with 4 additions and 19 deletions

View File

@ -131,28 +131,11 @@ how to deploy nextjs project with pm2 and yarn on my ubuntu server, the build co
### 容器部署 Docker Deployment ### 容器部署 Docker Deployment
1. 首先拉取镜像
```shell
docker pull aprilnea/chatgpt-next-web
```
2. 运行
```shell ```shell
docker pull yidadaa/chatgpt-next-web
docker run -d -p 3000:3000 -e OPEN_API_KEY="" -e CODE="" aprilnea/chatgpt-next-web docker run -d -p 3000:3000 -e OPEN_API_KEY="" -e CODE="" aprilnea/chatgpt-next-web
``` ```
请在适当位置替换你的 `OPEN_API-KEY``CODE`
1. First, pull the image
```shell
docker pull aprilnea/chatgpt-next-web
```
2. Run the container
```shell
docker run -d -p 3000:3000 -e OPEN_API_KEY="" -e CODE="" aprilnea/chatgpt-next-web
```
Please replace `OPEN_API_KEY` and `CODE` with your own credentials at the appropriate locations.
## 截图 Screenshots ## 截图 Screenshots
@ -178,6 +161,7 @@ If you would like to contribute your API key, you can email it to the author and
[@ClarenceDan](https://github.com/ClarenceDan) [@ClarenceDan](https://github.com/ClarenceDan)
### 贡献者 Contributor ### 贡献者 Contributor
[@AprilNEA](https://github.com/AprilNEA) [@AprilNEA](https://github.com/AprilNEA)
## LICENSE ## LICENSE

View File

@ -2,6 +2,7 @@
"name": "chatgpt-next-web", "name": "chatgpt-next-web",
"version": "1.1", "version": "1.1",
"private": false, "private": false,
"license": "Anti 996",
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev",
"build": "next build", "build": "next build",