From 80491cd11454f55caea883f14a53dc2cfc3b105b Mon Sep 17 00:00:00 2001 From: yym68686 Date: Wed, 26 Jun 2024 19:28:18 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=BB=20Code:=20Set=20the=20Docker=20ima?= =?UTF-8?q?ge=20tag=20to=20latest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/deploy.sh | 2 +- Dockerfile | 2 +- README.md | 20 ++++++++++---------- docker-compose.yml | 2 +- fly.toml | 2 +- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/deploy.sh b/.github/deploy.sh index 3a3054f2..8be9feca 100644 --- a/.github/deploy.sh +++ b/.github/deploy.sh @@ -34,7 +34,7 @@ kill_timeout = 5 processes = [] [build] - image = "yym68686/chatgpt:1.0" + image = "yym68686/chatgpt:latest" [env] diff --git a/Dockerfile b/Dockerfile index 834755c9..950a2233 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1 +1 @@ -FROM yym68686/chatgpt:1.0 \ No newline at end of file +FROM yym68686/chatgpt:latest \ No newline at end of file diff --git a/README.md b/README.md index d79da2ed..31d0c761 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ The ChatGPT Telegram Bot is a powerful Telegram bot that utilizes the latest GPT One-click deployment: -[![Deploy to Koyeb](https://www.koyeb.com/static/images/deploy/button.svg)](https://app.koyeb.com/deploy?type=docker&image=docker.io/yym68686/chatgpt:1.0&name=chatbot) +[![Deploy to Koyeb](https://www.koyeb.com/static/images/deploy/button.svg)](https://app.koyeb.com/deploy?type=docker&image=docker.io/yym68686/chatgpt:latest&name=chatbot) ## Zeabur Remote Deployment @@ -100,7 +100,7 @@ Official documentation: https://fly.io/docs/ Use Docker image to deploy fly.io application ```bash -flyctl launch --image yym68686/chatgpt:1.0 +flyctl launch --image yym68686/chatgpt:latest ``` Enter the name of the application when prompted, and select No for initializing Postgresql or Redis. @@ -152,7 +152,7 @@ docker run -p 80:8080 --name chatbot -dit \ -e BOT_TOKEN="telegram bot token" \ -e API="" \ -e API_URL= \ - yym68686/chatgpt:1.0 + yym68686/chatgpt:latest ``` Or if you want to use Docker Compose, here is a docker-compose.yml example: @@ -162,7 +162,7 @@ version: "3.5" services: chatgptbot: container_name: chatgptbot - image: yym68686/chatgpt:1.0 + image: yym68686/chatgpt:latest environment: - BOT_TOKEN= - API= @@ -180,9 +180,9 @@ docker-compose up -d Package the Docker image in the repository and upload it to Docker Hub ```bash -docker build --no-cache -t chatgpt:1.0 -f Dockerfile.build --platform linux/amd64 . -docker tag chatgpt:1.0 yym68686/chatgpt:1.0 -docker push yym68686/chatgpt:1.0 +docker build --no-cache -t chatgpt:latest -f Dockerfile.build --platform linux/amd64 . +docker tag chatgpt:latest yym68686/chatgpt:latest +docker push yym68686/chatgpt:latest ``` One-Click Restart Docker Image @@ -190,7 +190,7 @@ One-Click Restart Docker Image ```bash set -eu docker rm -f chatbot -docker pull yym68686/chatgpt:1.0 +docker pull yym68686/chatgpt:latest docker run -p 8080:8080 -dit --name chatbot \ -e BOT_TOKEN= \ -e API= \ @@ -198,11 +198,11 @@ docker run -p 8080:8080 -dit --name chatbot \ -e GOOGLE_API_KEY= \ -e GOOGLE_CSE_ID= \ -e claude_api_key= \ -yym68686/chatgpt:1.0 +yym68686/chatgpt:latest docker logs -f chatbot ``` -This script is for restarting the Docker image with a single command. It first removes the existing Docker container named "chatbot" if it exists. Then, it runs a new Docker container with the name "chatbot", exposing port 8080 and setting various environment variables. The Docker image used is "yym68686/chatgpt:1.0". Finally, it follows the logs of the "chatbot" container. +This script is for restarting the Docker image with a single command. It first removes the existing Docker container named "chatbot" if it exists. Then, it runs a new Docker container with the name "chatbot", exposing port 8080 and setting various environment variables. The Docker image used is "yym68686/chatgpt:latest". Finally, it follows the logs of the "chatbot" container. ## 📄 Q & A diff --git a/docker-compose.yml b/docker-compose.yml index be3bd456..b2263530 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ version: "3.5" services: chatgptbot: container_name: chatgptbot - image: yym68686/chatgpt:1.0 + image: yym68686/chatgpt:latest environment: - BOT_TOKEN= - API= diff --git a/fly.toml b/fly.toml index 67034929..c2510436 100644 --- a/fly.toml +++ b/fly.toml @@ -6,7 +6,7 @@ kill_timeout = 5 processes = [] [build] - image = "yym68686/chatgpt:1.0" + image = "yym68686/chatgpt:latest" [env]