add docker

This commit is contained in:
Anton Palgunov 2023-03-31 21:08:16 +01:00
parent 693d484872
commit cd4b580641
4 changed files with 16 additions and 1 deletions

10
Dockerfile Normal file
View 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"]

View File

@ -22,7 +22,7 @@ This will install the `pyTelegramBotAPI` and `openai` packages, which are needed
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.

View File

5
docker-compose.yml Normal file
View File

@ -0,0 +1,5 @@
version: '3'
services:
bot:
build: .
command: python3 bot.py