From d23015ba5662e1999a09cb2a356522bc0fa5b0a8 Mon Sep 17 00:00:00 2001 From: Shihaam Abdul Rahman Date: Sun, 12 Nov 2023 00:18:50 +0500 Subject: [PATCH] dockerized --- .build/Dockerfile | 8 ++++++++ .build/docker-compose.yml | 15 +++++++++++++++ compose.yml | 8 ++++++++ 3 files changed, 31 insertions(+) create mode 100644 .build/Dockerfile create mode 100644 .build/docker-compose.yml create mode 100644 compose.yml diff --git a/.build/Dockerfile b/.build/Dockerfile new file mode 100644 index 0000000..8bbb73e --- /dev/null +++ b/.build/Dockerfile @@ -0,0 +1,8 @@ +FROM archlinux + +WORKDIR /root +RUN pacman -Sy --noconfirm mpv jq curl speedtest-cli + +COPY . . + +CMD ./bot.sh diff --git a/.build/docker-compose.yml b/.build/docker-compose.yml new file mode 100644 index 0000000..73210c0 --- /dev/null +++ b/.build/docker-compose.yml @@ -0,0 +1,15 @@ +version: '3.5' +services: + starlink_status: + build: + context: .. + dockerfile: .build/Dockerfile + x-bake: + platforms: + - linux/amd64/v1 + - linux/amd64/v2 + - linux/amd64/v3 +# - linux/arm/v7 +# - linux/arm64 + pull: true + image: git.shihaam.dev/shihaam/starlink_status diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..63ff392 --- /dev/null +++ b/compose.yml @@ -0,0 +1,8 @@ +version: '3.5' +services: + + bot: + hostname: starlink_status + image: git.shihaam.dev/shihaam/starlink_status + env_file: + - ./.env