Update container signal handling
All checks were successful
Docker Build and Push / build-and-push (push) Successful in 1m12s
All checks were successful
Docker Build and Push / build-and-push (push) Successful in 1m12s
This commit is contained in:
@@ -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"]
|
Reference in New Issue
Block a user