Skip to content

Commit

Permalink
Fix stop signals not being propagated to python process in Docker con…
Browse files Browse the repository at this point in the history
…tainer
  • Loading branch information
Mega-JC committed Aug 27, 2024
1 parent 6320a0f commit ffa397c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ffa397c

Please sign in to comment.