chatgpt_telegram_bot
chatgpt_telegram_bot copied to clipboard
[tested] Updated Dockerfile and docker-compose.yml to simplify bot restarts
In response to issue #166 :
Updated Dockerfile and docker-compose.yml to use VOLUME mounts for ./bot/ and ./config/ directories, simplifying container restarts for easier bot changes.
Prior to this change, changes to the bot required a docker-compose build to be triggered. With this change, changes can be made with a simple docker-compose restart.
This change improves the development experience for contributors; it also keeps the resulting container a bit smaller in size by deleting the lists generated by apt-get update which can become quite substantial (>150MB on Ubuntu 22.04)
@karfly can we please have this? it would make iterating much easier and a lot faster :)
Support this. Thank you so much, that's much easier.
Works great!
Minor suggestion:
Please add .dockeringore
mongodb/
No need to send the whole mongodb to docker engine to build container.
@hvanmegen hello. Does it work with new version v 1.4?
thank you for PR, merged: https://github.com/Natgho/chatgpt_telegram_bot/pull/4 if you want to contribute for the fork of the active repo, PR's are welcome :)