From ffa397caa7b367fd4fede48b5b9e437911b92c67 Mon Sep 17 00:00:00 2001 From: Mega-JC <65417594+Mega-JC@users.noreply.github.com> Date: Tue, 27 Aug 2024 21:50:48 +0200 Subject: [PATCH] Fix stop signals not being propagated to python process in Docker container --- Dockerfile | 3 +-- docker-compose.yml | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7815ec4..f223ff6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,5 +38,4 @@ COPY ./pcbot /app/pcbot WORKDIR /app -ENTRYPOINT /docker-entrypoint.sh $0 $@ -CMD [ "python3", "-m", "pcbot.__main__", "--config", "env/config.py", "--localconfig", "env/localconfig.py"] +ENTRYPOINT ["/docker-entrypoint.sh", "python3", "-m", "pcbot.__main__", "--config", "env/config.py", "--localconfig", "env/localconfig.py"] diff --git a/docker-compose.yml b/docker-compose.yml index 1762353..eaa67d5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,6 +7,7 @@ services: build: context: . dockerfile: Dockerfile + stop_signal: SIGINT volumes: # Mount environment and config files directory # to the service as a volume