chatgpt_telegram_bot icon indicating copy to clipboard operation
chatgpt_telegram_bot copied to clipboard

[tested] Updated Dockerfile and docker-compose.yml to simplify bot restarts

Open hvanmegen opened this issue 2 years ago • 6 comments

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)

hvanmegen avatar Mar 23 '23 05:03 hvanmegen

@karfly can we please have this? it would make iterating much easier and a lot faster :)

hvanmegen avatar Mar 24 '23 10:03 hvanmegen

Support this. Thank you so much, that's much easier.

yelloduxx avatar Mar 26 '23 16:03 yelloduxx

Works great!

corentinfranc avatar Mar 27 '23 17:03 corentinfranc

Minor suggestion:

Please add .dockeringore

mongodb/

No need to send the whole mongodb to docker engine to build container.

Grynn avatar Apr 02 '23 21:04 Grynn

@hvanmegen hello. Does it work with new version v 1.4?

yelloduxx avatar May 03 '23 10:05 yelloduxx

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 :)

Natgho avatar Feb 15 '24 12:02 Natgho