Init Dockerfile and docker-compose.yml

This commit is contained in:
trueold89 2024-06-03 21:39:24 +03:00
parent f26f8cdd9a
commit 7b130b4bc7
Signed by: trueold89
GPG Key ID: C122E85DD49E6B30
2 changed files with 16 additions and 0 deletions

6
docker/Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM alpine:latest
RUN apk update && apk add python3 py3-pip
ENV DB_PATH="/etc/hellmbot/database.sqlite"
RUN pip install --extra-index-url https://git.orudo.ru/api/packages/trueold89/pypi/simple/ HellMBot --break-system-packages
WORKDIR /etc/hellmbot
ENTRYPOINT ["hellm"]

10
docker/docker-compose.yml Normal file
View File

@ -0,0 +1,10 @@
services:
qbitdl_bot:
image: git.orudo.ru/trueold89/hellmbot:latest
container_name: HellMBot
volumes:
- hellm_db:/etc/hellmbot
restart: 'unless-stopped'
environment:
BOT_TOKEN: "insertyourbottokenhere"
CLIENT_ID: "insertyourclientidhere"