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