diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..efe041a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM python:3.11 + +WORKDIR /usr/src/kabot +ENV CONFIG_FILE=/data/config.ini +COPY kabot ./ +COPY config.ini.sample /data/config.ini +COPY entrypoint.sh / + +RUN pip install --no-cache-dir /usr/src/kabot/ + +CMD [ "/entrypoint.sh" ] diff --git a/config.ini.sample b/config.ini.sample index c979083..9e5e06b 100644 --- a/config.ini.sample +++ b/config.ini.sample @@ -1,6 +1,6 @@ [DEFAULT] -logs = /var/log/kabot/kabot.log +logs = /var/log/kabot.log audio_path = /tmp/ voice_channel = channel_name text_channel = channel_name diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100755 index 0000000..656edfe --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +kabot -c $CONFIG_FILE diff --git a/kabot/MANIFEST.in b/kabot/MANIFEST.in index 965b2dd..7b4adff 100644 --- a/kabot/MANIFEST.in +++ b/kabot/MANIFEST.in @@ -3,6 +3,7 @@ include CONTRIBUTING.rst include HISTORY.rst include LICENSE include README.rst +include kabot/utils/ressources/* recursive-include tests * recursive-exclude * __pycache__ diff --git a/kabot/kabot/ressources/.gitkeep b/kabot/kabot/ressources/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/kabot/setup.py b/kabot/setup.py index a3724cf..01c0849 100644 --- a/kabot/setup.py +++ b/kabot/setup.py @@ -19,6 +19,8 @@ requirements = [ 'python-gitlab', 'giphy_client', 'yt-dlp', + 'lxml', + 'BeautifulSoup4', ] setup_requirements = [ ] @@ -51,6 +53,7 @@ setup( license="BSD license", long_description=readme + '\n\n' + history, include_package_data=True, + package_data={'ressources': ['kabot/utils/ressources/*']}, keywords='kabot', name='kabot', packages=find_packages(include=['kabot', 'kabot.*']),