Simp-O-Matic

Dumb Discord bot in TS.
git clone git://git.knutsen.co/Simp-O-Matic
Log | Files | Refs | README | LICENSE

commit 216abb0dbcb810772badbfb977e44f45937cae92
parent 2fd6c61cd53a52cbb22848867fa38212daa1cc97
Author: Demonstrandum <moi@knutsen.co>
Date:   Fri, 13 Nov 2020 18:38:41 +0000

Update dockerfile to make graceful shutdowns.

Diffstat:
MDockerfile | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile @@ -22,4 +22,6 @@ RUN /app/node_modules/.bin/tsc -b /app/tsconfig.json # Run ENTRYPOINT ["sh", "-c", "source /app/.env && \"$@\"", "-s"] -CMD ["yarn", "start"] +# Kill with `docker stop` for a graceful shutdown (saving configs, etc.) +# or use `docker kill` to not follow the bot's shutdown procedur. +CMD ["node", "."]