Update container signal handling

This commit is contained in:
k.eaven committed 2025-08-12 15:21:20 -07:00
1 parent ce8809c7b0
commit 2257ae1013
1 file changed
+5 -2
+5 -2
View File
@@ -10,6 +10,9 @@ RUN apt-get update && apt-get install -y \
python3-dev \
&& rm -rf /var/lib/apt/lists/*
# Install tini for better signal handling in container
RUN apt-get update && apt-get install -y tini
# Copy requirements first to leverage Docker cache
COPY requirements.txt .
@@ -39,5 +42,5 @@ USER bot
ENV PYTHONUNBUFFERED=1
ENV CONFIG_PATH=/app/config.ini
# Run the bot using the entrypoint script
ENTRYPOINT ["/bin/sh", "/app/entrypoint.sh"]
# Run the bot using tini and entrypoint script
ENTRYPOINT ["tini", "--", "/bin/sh", "entrypoint.sh"]