Update README.md

This should be adequate for users to run a Dockerized version of the script so you could in theory run many instance of them or do so in a highly available manner.
This commit is contained in:
Lingua Latina Machina 2023-07-14 22:02:01 -04:00 committed by GitHub
parent e3fd280e3e
commit 9784736f4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -17,6 +17,17 @@ $ git clone https://github.com/knrd1/chatgpt.git
$ cd chatgpt
$ cp example-chat.conf chat.conf
```
To build the Docker image, you can use the following command:
```docker build -t my-python-app .```
To run the Docker container, you can use the following command:
```docker run -p 4000:80 my-python-app```
This Dockerfile ensures that your application runs in an isolated environment with its dependencies,
which enhances its security and reliability. However, for a production environment, you might want
to consider additional security measures, such as using a non-root user to run the application inside
the container1.
### Configuration:
Edit chat.conf and change variables. Example configuration for IRCNet: