From 5bf7a17f7abadb966fb5d819121d528fdd3ed755 Mon Sep 17 00:00:00 2001 From: Finn Christiansen Date: Wed, 12 Jun 2024 21:36:53 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B3=20Add=20container=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dockerignore | 3 +++ Dockerfile | 11 +++++++++++ compose.yml | 9 +++++++++ 3 files changed, 23 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile create mode 100644 compose.yml diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..a7ff473 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +.env +bin +lib diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..be4a230 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +# syntax=docker/dockerfile:1 +FROM python:3.12-alpine + +WORKDIR /bot + +COPY requirements.txt requirements.txt +RUN pip3 install -r requirements.txt + +COPY . . + +CMD ["python", "bot.py"] diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..a7190c5 --- /dev/null +++ b/compose.yml @@ -0,0 +1,9 @@ +--- +services: + matrix-bot-praying-times: + build: + context: . + environment: + - BOT_HOMESERVER + - BOT_USERNAME + - BOT_PASSWORD