Skip to content

Conversation

@Danex-Exe
Copy link
Contributor

Motivation

  • Provide a reproducible containerized deployment for the bot to simplify running on hosts and CI.
  • Ensure stable runtime by pinning Python dependency versions compatible with the current code.
  • Include pm2 support inside the image because the project uses pm2 in documentation and scripts.

Description

  • Added a Dockerfile based on python:3.11-slim that installs nodejs, npm and global pm2, installs Python requirements and runs application_start.py.
  • Added docker-compose.yml with a bot service that builds the image, mounts the repository into /app, sets working_dir and runs python application_start.py.
  • Added .dockerignore to reduce build context and excluded VCS, caches and logs, and updated requirements.txt to pin python-telegram-bot==21.6 and httpx==0.27.2.
  • Updated documentation files docs/README.md and docs/ru/README_RU.md with docker compose build/start/logs/stop instructions.

Testing

  • Ran python -m py_compile application_start.py telegram_bot.py lib/DataBaze/databaze.py and it succeeded.
  • Ran pip install -r requirements.txt and it successfully installed the pinned packages locally.
  • Attempted docker compose config but it could not be executed in this environment because docker is not available (command not found).

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant