gx-bot | 0.00s - Debugger warning: It seems that frozen modules are being used, which may
gx-bot | 0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
gx-bot | 0.00s - to python to disable frozen modules.
gx-bot | 0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
FROM python:3.13.5-bookworm
WORKDIR /bot
COPY pyproject.toml .
COPY poetry.lock .
RUN apt update
# Install Poetry
RUN apt install -y curl
RUN curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python3 -
# Install dependencies
RUN apt install gcc
RUN /root/.local/bin/poetry install
COPY . .
# Convert DOS line endings to Unix
RUN apt install -y dos2unix
RUN dos2unix /bot/*.sh
RUN chmod +x /bot/*.sh
# Expose debugpy port for debugging
EXPOSE 5678
# Run the bot
# CMD ["/root/.local/bin/poetry", "run", "python3", "./GeniusXBot/bot.py"]
CMD ["/root/.local/bin/poetry", "run", "python3", "-m", "debugpy", "--listen", "0.0.0.0:5678", "--wait-for-client", "./GeniusXBot/bot.py"]