feat: Add run with docker

このコミットが含まれているのは:
Xiang 2023-05-09 21:41:17 +08:00 committed by GitHub
コミット 3a7495c534
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更10行の追加2行の削除

ファイルの表示

@ -27,8 +27,7 @@ yarn
yarn start
```
## Deploy with docker-compose
## Run with docker
first, you should create file .env
```env
http_proxy=http://host:port
@ -36,6 +35,15 @@ http_proxy=http://host:port
# get api key here https://rapidapi.com/calvinloveland335703-0p6BxLYIH8f/api/temp-mail44
rapid_api_key=xxxxxxxxxx
```
```
docker run --env-file .env xiangsx/gpt4free-ts:latest
```
## Deploy with docker-compose
first, you should create file .env; Follow step "Run with docekr"
deploy
```
docker-compose up --build -d