Little bugfix

- Update Dockerfile
- Fix docker-compose.yml
- Fix setup.py
This commit is contained in:
trueold89 2024-06-03 22:29:27 +03:00
parent 6977bd58a0
commit 3007d8fadd
Signed by: trueold89
GPG Key ID: C122E85DD49E6B30
3 changed files with 8 additions and 6 deletions

View File

@ -1,6 +1,6 @@
FROM alpine:latest FROM python:3.12.3-alpine3.19
RUN apk update && apk add python3 py3-pip RUN apk update && apk add python3 py3-pip
ENV DB_PATH="/etc/hellmbot/database.sqlite" 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 WORKDIR /etc/hellmbot
ENTRYPOINT ["hellm"] ENTRYPOINT ["hellm"]

View File

@ -1,5 +1,5 @@
services: services:
qbitdl_bot: hellm_bot:
image: git.orudo.ru/trueold89/hellmbot:latest image: git.orudo.ru/trueold89/hellmbot:latest
container_name: HellMBot container_name: HellMBot
volumes: volumes:
@ -7,4 +7,6 @@ services:
restart: 'unless-stopped' restart: 'unless-stopped'
environment: environment:
BOT_TOKEN: "insertyourbottokenhere" BOT_TOKEN: "insertyourbottokenhere"
CLIENT_ID: "insertyourclientidhere" CLIENT_ID: "insertyourclientidhere"
volumes:
hellm_db:

View File

@ -12,6 +12,6 @@ setup(
long_description=open("README.md").read(), long_description=open("README.md").read(),
install_requires=["discord.py"], install_requires=["discord.py"],
entry_points={ entry_points={
"console_scripts": ["hellm = hellmbot.bot:main"] "console_scripts": ["hellm = hellmbot.bot:start"]
} }
) )