137
Base on karfly/chatgpt_telegram_bot
https://github.com/karfly/chatgpt_telegram_bot
- Build a Ubuntu LXC (Hard disk = 2GB)
- Allow Root SSH
- apt update && apt upgrade -y
- Download the code
wget https://github.com/karfly/chatgpt_telegram_bot/archive/refs/heads/main.zip - Install Unzip and unzip the code
apt install unzip
unzip main.zip - Install Docker
sudo apt update && apt upgrade
sudo apt install curl -y
sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add –
sudo add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable”
sudo apt install docker-ce docker-ce-cli containerd.io docker-compose - Configure the code
mv config/config.example.yml config/config.yml
mv config/config.example.env config/config.env
nano config/config.yml - I got an error while processing installation. I have made change on Dockerfile
From
RUN pip3 install -U pip && pip3 install -U wheel && pip3 install -U setuptools==59.5.0
To
RUN pip3 install –user pip && pip3 install –user wheel && pip3 install –user setuptools==59.5.0 - Start to install
docker-compose –env-file config/config.env up –build
Done
Refer:
https://github.com/karfly/chatgpt_telegram_bot
https://blog.csdn.net/weixin_43214528/article/details/114285697