Skip to content

Commit 4650af2

Browse files
HiS3ostefano
authored andcommitted
Fix misp-core shutdown (supervisord with exec as PID 1)
1 parent fe34ac9 commit 4650af2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

core/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ FROM "${DOCKER_HUB_PROXY}python:3.12-slim-bookworm" AS php-base
1111
RUN apt-get update; apt-get install -y --no-install-recommends \
1212
lsb-release \
1313
ca-certificates \
14-
curl
14+
curl \
15+
tini
1516

1617

1718
FROM php-base AS composer-build

core/files/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@ export NGINX_SET_REAL_IP_FROM=${NGINX_SET_REAL_IP_FROM}
7777
export NGINX_CLIENT_MAX_BODY_SIZE=${NGINX_CLIENT_MAX_BODY_SIZE:-50M}
7878

7979
# start supervisord using the main configuration file so we have a socket interface
80-
/usr/local/bin/supervisord -c /etc/supervisor/supervisord.conf
80+
exec /usr/bin/tini -- /usr/local/bin/supervisord -c /etc/supervisor/supervisord.conf

0 commit comments

Comments
 (0)