From 01570e286cd824d3f73df86e0ae5722d0c51431a Mon Sep 17 00:00:00 2001 From: Shubham Verlekar Date: Thu, 16 Feb 2023 04:02:00 +0530 Subject: [PATCH] Update docker image and README for OpenAI API - Update docker-compose.yml to use image from ghcr.io repository and add environment variable for OpenAI API Token - Update README.md instructions to use the ghcr.io repository and remove 3 empty lines at the end of the file [docker-compose.yml] - Change the image from `gpt3discord:latest` to `docker pull ghcr.io/Kav-K/GPT3Discord:main` - Add environment variable for OpenAI API Token [README.md] - Change the docker run command to use the ghcr.io repository - Remove 3 empty lines at the end of the file --- README.md | 5 +---- docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e326d04..d25475b 100644 --- a/README.md +++ b/README.md @@ -440,14 +440,11 @@ This can also be run via screen/tmux or detached like a daemon. --> ### Docker and Docker Compose : To use docker you can use the following command ``` -docker run -d --name gpt3discord -v /containers/gpt3discord:/data -v /containers/gpt3discord/share:/data/share --env-file /path/to/.env gpt3discord:latest +docker run -d --name gpt3discord -v /containers/gpt3discord:/data -v /containers/gpt3discord/share:/data/share --env-file /path/to/.env ghcr.io/Kav-K/GPT3Discord:main ``` Make sure that the /data and /data/share are created and the `env-file` path is correct. - - - #### Docker Compose To use Docker Compose, you need to have Docker and Docker Compose installed on your system. You can download and install them from the following links: diff --git a/docker-compose.yml b/docker-compose.yml index c45c697..8b4cd96 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ version: '3.8' services: gpt3discord: - image: gpt3discord:latest + image: docker pull ghcr.io/Kav-K/GPT3Discord:main container_name: gpt3discord environment: OPENAI_TOKEN: ""