Need to have docker desktop installed Mac / Windows / Linux.
Need the .env
file or manually enter --env xxx=xxx
If you want to clone the repo or you can just touch .env
at the working directory:
git clone https://github.com/dadahsueh/zakook-bot.git
cd zakook-bot
mv .env.template .env
Configure the .env
if you are want to use the --env-file
method
TOKEN=BOT_TOKEN_HERE
CONTAINER_NAME=zakook-bot-runner
ADMIN_USERS=["635507656"]
BOT_NAME=ZAKOOK
BOT_VERSION=v0.0.1
MUSIC_STATUS=[";"]
CF=
Pull the docker image
docker pull dadahsueh/zakook-bot
use configured file
docker run -i --env-file .env --name zakook-bot-container zakook-bot
or set it in the Hub app or manually set --env xxx=xxx
or short -e xxx=xxx
docker run -i --env token=Your_Token_Here --name zakook-bot-container zakook-bot
optional --restart always
, for more info check Docker Manual.
If you want to set a Cloudflare Worker, also check Cloudflare Worker README.
docker run -i -e token=Your_Token_Here -e cf=https://xxxworker.xxxname.workers.dev/ zakook-bot
Clone git repo
git clone https://github.com/dadahsueh/zakook-bot.git
cd zakook-bot
mv .env.template .env
Build
docker build --no-cache=true -t zakook-bot:latest .
Then go see Running if you want to run the bot.
if you want to push to a docker repo, rename to your repo:tag
docker image tag zakook-bot:latest dadahsueh/zakook-bot:latest
push to your repo:tag
docker push dadahsueh/zakook-bot:latest
remove image with old name
docker rmi zakook-bot