Skip to content

Latest commit

 

History

History
99 lines (73 loc) · 2.3 KB

README.Docker.md

File metadata and controls

99 lines (73 loc) · 2.3 KB

docker pull dadahsueh/zakook-bot

📝 Table of Contents

1️⃣ Prerequisites

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=

🎈 Running

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

🔨 Building

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.


(Optional) Push tag

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

💭 Resources