Fast shutdown

This commit is contained in:
yuuki 2024-01-06 22:41:03 +00:00
parent e09831dfcb
commit 2200ec5944
2 changed files with 2 additions and 2 deletions

View File

@ -2,4 +2,4 @@ FROM python:latest
COPY . /app COPY . /app
WORKDIR /app WORKDIR /app
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
CMD ["bash","-eux","start.sh"] CMD ["timeout","0","bash","-eux","start.sh"]

View File

@ -3,4 +3,4 @@ COPY . /app
WORKDIR /app WORKDIR /app
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
ENV PYTHONUNBUFFERED 1 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"]