From 4ff0427b647507a40024cc853a955844b2117c88 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 7 Jul 2026 23:22:12 +0200 Subject: [PATCH] Docker and installation issues --- constants.py | 22 +++++++++++----------- docker/Dockerfile.bot | 5 ++++- requirements_bot.txt | 1 - 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/constants.py b/constants.py index 4f352e7..2bcb15a 100644 --- a/constants.py +++ b/constants.py @@ -107,18 +107,18 @@ if platform in ("linux", "linux2"): DIR_PATH_SADOX = "/mnt/c/Users/mtusz/OneDrive/Dokumenty/Fansadox" else: - LOGFILE = "/home/pi/Conjurer/discord.log" - MEMORY_FIVE_SIARA = "/home/pi/Conjurer/pamiec.json" - SYSTEM_GPT_SETTINGS = "/home/pi/Conjurer/system_gpt_settings.json" - MEMORY_FIVE_MUZYKA = "/home/pi/Conjurer/pamiec_muzyki.json" - MUSIC_FOLDER = "/home/pi/MediaShare/mp3/" - SETTINGS_FILE = "/home/pi/Conjurer/settings.json" - NETRC_FILE = "/home/pi/.netrc" - LOGSTORE = "/home/pi/MediaShara/logs/" - ACCIDENT_LOG = "/home/pi/Conjurer/accident_log.json" + LOGFILE = "./discord.log" + MEMORY_FIVE_SIARA = "./pamiec.json" + SYSTEM_GPT_SETTINGS = "./system_gpt_settings.json" + MEMORY_FIVE_MUZYKA = "./pamiec_muzyki.json" + MUSIC_FOLDER = "./" + SETTINGS_FILE = "./settings.json" + NETRC_FILE = "/srv/conjurer/secrets/.netrc" + LOGSTORE = "./logs/" + ACCIDENT_LOG = "./accident_log.json" ENCODING = "utf-8" - GRAPHICS_PATH = "/home/pi/MediaShare/Conjurer_graphics/" - DIR_PATH_SADOX = "/home/pi/MediaShare/Fansadox/" + GRAPHICS_PATH = "./Conjurer_graphics/" + DIR_PATH_SADOX = "./Fansadox/" elif platform == "win32": diff --git a/docker/Dockerfile.bot b/docker/Dockerfile.bot index 9e6f1c5..67dcdeb 100644 --- a/docker/Dockerfile.bot +++ b/docker/Dockerfile.bot @@ -1,7 +1,7 @@ # Conjurer main Discord bot. # Build from the repository root: # docker build -f docker/Dockerfile.bot -t conjurer-bot . -FROM python:3.11-slim +FROM python:3.13-trixie # System dependencies: # ffmpeg - audio download/convert (yt_dlp) and Discord voice @@ -17,6 +17,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \ curl \ ca-certificates \ + python3-dev \ + build-essential \ + portaudio19-dev \ && rm -rf /var/lib/apt/lists/* WORKDIR /app diff --git a/requirements_bot.txt b/requirements_bot.txt index bcbbfac..2dc3526 100644 --- a/requirements_bot.txt +++ b/requirements_bot.txt @@ -17,6 +17,5 @@ PyMuPDF waitress assemblyai[extras] SpeechRecognition -aiomcrcon asyncssh git+https://github.com/imayhaveborkedit/discord-ext-voice-recv