add docker
This commit is contained in:
parent
693d484872
commit
cd4b580641
10
Dockerfile
Normal file
10
Dockerfile
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
FROM python:3.9-slim-buster
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY requirements.txt requirements.txt
|
||||||
|
RUN pip3 install -r requirements.txt
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
CMD ["python3", "bot.py"]
|
||||||
@ -22,7 +22,7 @@ This will install the `pyTelegramBotAPI` and `openai` packages, which are needed
|
|||||||
|
|
||||||
To start the bot, run the following command:
|
To start the bot, run the following command:
|
||||||
|
|
||||||
`python main.py`
|
`python bot.py`
|
||||||
|
|
||||||
This will start the bot and it will begin listening for incoming messages from users. Whenever a user sends a message, the bot will use the ChatGPT model to generate a response and send it back to the user.
|
This will start the bot and it will begin listening for incoming messages from users. Whenever a user sends a message, the bot will use the ChatGPT model to generate a response and send it back to the user.
|
||||||
|
|
||||||
5
docker-compose.yml
Normal file
5
docker-compose.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
bot:
|
||||||
|
build: .
|
||||||
|
command: python3 bot.py
|
||||||
Loading…
Reference in New Issue
Block a user