From 3007d8faddc1681a23fcd011b2b918e5bded648a Mon Sep 17 00:00:00 2001 From: trueold89 Date: Mon, 3 Jun 2024 22:29:27 +0300 Subject: [PATCH] Little bugfix - Update Dockerfile - Fix docker-compose.yml - Fix setup.py --- docker/Dockerfile | 6 +++--- docker/docker-compose.yml | 6 ++++-- setup.py | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 9d2137b..b299bdf 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,6 +1,6 @@ -FROM alpine:latest +FROM python:3.12.3-alpine3.19 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 +RUN pip install --extra-index-url https://git.orudo.ru/api/packages/trueold89/pypi/simple/ HellMBot WORKDIR /etc/hellmbot -ENTRYPOINT ["hellm"] \ No newline at end of file +ENTRYPOINT ["hellm"] diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 08bb2d1..56d4afd 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -1,5 +1,5 @@ services: - qbitdl_bot: + hellm_bot: image: git.orudo.ru/trueold89/hellmbot:latest container_name: HellMBot volumes: @@ -7,4 +7,6 @@ services: restart: 'unless-stopped' environment: BOT_TOKEN: "insertyourbottokenhere" - CLIENT_ID: "insertyourclientidhere" \ No newline at end of file + CLIENT_ID: "insertyourclientidhere" + volumes: + hellm_db: diff --git a/setup.py b/setup.py index 3b75c8e..e58436e 100644 --- a/setup.py +++ b/setup.py @@ -12,6 +12,6 @@ setup( long_description=open("README.md").read(), install_requires=["discord.py"], entry_points={ - "console_scripts": ["hellm = hellmbot.bot:main"] + "console_scripts": ["hellm = hellmbot.bot:start"] } )