From 8302d087bc693be687392643b90024ac2fed43b0 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Fri, 2 Sep 2022 10:21:56 +0000 Subject: [PATCH] Fix crash build --- Dockerfile | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ffc6d91..417060f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,4 +9,4 @@ FROM python:3.10.6-slim COPY --from=build /app/dist /tmp/dist RUN pip install /tmp/dist/*.whl && rm -rf /tmp/dist -CMD ["python", "-m", "divent.bot"] +CMD ["divent"] diff --git a/pyproject.toml b/pyproject.toml index 4d1eae4..8336134 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ authors = ["XĂ©fir Destiny"] license = "WTFPL" [tool.poetry.scripts] -divent = 'divent.bot' +divent = 'divent.bot:__main__' [tool.poetry.dependencies] python = "^3.8"