From 2200ec5944d06d08e1c62ba01996cd0fdadef1be Mon Sep 17 00:00:00 2001 From: yuuki <> Date: Sat, 6 Jan 2024 22:41:03 +0000 Subject: [PATCH] Fast shutdown --- Dockerfile | 2 +- server/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b56a37b..a97aefe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,4 +2,4 @@ FROM python:latest COPY . /app WORKDIR /app RUN pip install -r requirements.txt -CMD ["bash","-eux","start.sh"] +CMD ["timeout","0","bash","-eux","start.sh"] diff --git a/server/Dockerfile b/server/Dockerfile index dbb9af2..7841776 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -3,4 +3,4 @@ COPY . /app WORKDIR /app RUN pip install -r requirements.txt ENV PYTHONUNBUFFERED 1 -CMD ["python","server.py","34802","-b","0.0.0.0"] +CMD ["timeout","0","python","server.py","34802","-b","0.0.0.0"]