Skip to content

Commit

Permalink
use github docker
Browse files Browse the repository at this point in the history
  • Loading branch information
xnth97 committed Mar 8, 2024
1 parent 553e174 commit f01e688
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,7 @@ magic-conch is a Telegram bot powered by Azure Cognitive Services.

### Docker

1. Clone this repo and `cd` into the directory. Build docker image.

```sh
docker build -t magic-conch .
```

2. Copy `EXAMPLE_config.json` as `config.json` and fill in with your own information. You must have a valid Azure model deployment. Please see __Prerequisite__ section of [Azure documentation](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/chatgpt-quickstart?tabs=command-line&pivots=rest-api). An example is like:
1. Copy `EXAMPLE_config.json` as `config.json` and fill in with your own information. You must have a valid Azure model deployment. Please see __Prerequisite__ section of [Azure documentation](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/chatgpt-quickstart?tabs=command-line&pivots=rest-api). An example is like:

```js
{
Expand Down Expand Up @@ -52,10 +46,10 @@ docker build -t magic-conch .
}
```

3. Run the docker image with your own `config.json`.
2. Run the docker image with your own `config.json`.

```sh
docker run -v ./config.json:/app/config.json -d magic-conch
docker run -v ./config.json:/app/config.json -d ghcr.io/xnth97/magic-conch:latest
```

### Build
Expand Down

0 comments on commit f01e688

Please sign in to comment.