Update container signal handling
All checks were successful
Docker Build and Push / build-and-push (push) Successful in 1m12s

This commit is contained in:
2025-08-12 15:21:20 -07:00
parent ce8809c7b0
commit 2257ae1013

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"]