Add signal handling to container
This commit is contained in:
1 parent
3537fe2f4e
commit
842247f8e4
1 file changed
+2
-2
+2
-2
@@ -39,5 +39,5 @@ USER bot
|
|||||||
ENV PYTHONUNBUFFERED=1
|
ENV PYTHONUNBUFFERED=1
|
||||||
ENV CONFIG_PATH=/app/config.ini
|
ENV CONFIG_PATH=/app/config.ini
|
||||||
|
|
||||||
# Command to run the bot
|
# Command to run the bot (using exec form and signal handling)
|
||||||
CMD ["sh", "-c", "python generate_config.py && python pterodisbot.py"]
|
CMD ["sh", "-c", "python generate_config.py && exec python pterodisbot.py"]
|
||||||
Reference in new issue
Block a user