From 518519c30c83f71429947fff6cc1dbc11a05d621 Mon Sep 17 00:00:00 2001 From: bertybuttface <110790513+bertybuttface@users.noreply.github.com> Date: Thu, 22 Dec 2022 15:19:17 +0000 Subject: [PATCH] Add documentation for Docker. --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 18977ac..56b8201 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,6 @@ You should not be using this ChatGPT account while the bot is using it, because If your OpenAI account uses Google Auth, you shouldn't encounter any of the more complicated Recaptchas — and can avoid using paid third-party CAPTCHA solving providers. To use Google auth, make sure your OpenAI account is using Google and then set IS_GOOGLE_LOGIN to true. - # Usage - Create an unencrypted room - Add the bot @@ -56,5 +55,14 @@ MATRIX_BOT_PASSWORD= - `yarn build` - `yarn start` +## Running with Docker + +``` +docker build . -t matrix-chatgpt-bot +docker run --cap-add=SYS_ADMIN -it matrix-chatgpt-bot +``` + +Note: Without -it flags in the command above you won't be able to stop the container using Ctrl-C + # License GNU AGPLv3. See LICENSE