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
Mega-JC committed Aug 27, 2024
1 parent 6320a0f commit e5da810
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/deploy-to-vps.yml
Original file line number Diff line number Diff line change
@@ -40,7 +40,6 @@ jobs:
# Stop, remove, and build the Docker Compose stack
docker compose $COMPOSE down -v --remove-orphans
sleep 60
docker compose $COMPOSE build --no-cache
docker compose $COMPOSE up -d
docker image prune -af
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
@@ -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

0 comments on commit e5da810

Please sign in to comment.