Skip to content

Commit e5da810

Browse files
committed
Fix stop signals not being propagated to python process in Docker container
1 parent 6320a0f commit e5da810

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.github/workflows/deploy-to-vps.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ jobs:
4040
4141
# Stop, remove, and build the Docker Compose stack
4242
docker compose $COMPOSE down -v --remove-orphans
43-
sleep 60
4443
docker compose $COMPOSE build --no-cache
4544
docker compose $COMPOSE up -d
4645
docker image prune -af

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,4 @@ COPY ./pcbot /app/pcbot
3838

3939
WORKDIR /app
4040

41-
ENTRYPOINT /docker-entrypoint.sh $0 $@
42-
CMD [ "python3", "-m", "pcbot.__main__", "--config", "env/config.py", "--localconfig", "env/localconfig.py"]
41+
ENTRYPOINT ["/docker-entrypoint.sh", "python3", "-m", "pcbot.__main__", "--config", "env/config.py", "--localconfig", "env/localconfig.py"]

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ services:
77
build:
88
context: .
99
dockerfile: Dockerfile
10+
stop_signal: SIGINT
1011
volumes:
1112
# Mount environment and config files directory
1213
# to the service as a volume

0 commit comments

Comments
 (0)