This commit is contained in:
+5
-1
@@ -12,11 +12,12 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
|
|||||||
GIT_BRANCH=${GIT_BRANCH} \
|
GIT_BRANCH=${GIT_BRANCH} \
|
||||||
BUILD_SOURCE=${BUILD_SOURCE}
|
BUILD_SOURCE=${BUILD_SOURCE}
|
||||||
|
|
||||||
# Install system dependencies including PostgreSQL client libraries
|
# Install system dependencies including PostgreSQL client libraries and tini
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
curl \
|
curl \
|
||||||
libpq-dev \
|
libpq-dev \
|
||||||
gcc \
|
gcc \
|
||||||
|
tini \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Create app user and directory
|
# Create app user and directory
|
||||||
@@ -67,5 +68,8 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
|||||||
# Expose port
|
# Expose port
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
|
# Use tini as init process to handle signals and zombie processes properly
|
||||||
|
ENTRYPOINT ["tini", "--"]
|
||||||
|
|
||||||
# Run the application with plugin deployment
|
# Run the application with plugin deployment
|
||||||
CMD ["/app/deploy-plugin.sh"]
|
CMD ["/app/deploy-plugin.sh"]
|
||||||
@@ -16,6 +16,10 @@ services:
|
|||||||
# Restart policy
|
# Restart policy
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
# Graceful shutdown configuration
|
||||||
|
stop_grace_period: 30s
|
||||||
|
stop_signal: SIGTERM
|
||||||
|
|
||||||
# Environment files
|
# Environment files
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
|
|||||||
Reference in New Issue
Block a user