From 90353d4016502466b2534cc518686416ac68bc65 Mon Sep 17 00:00:00 2001 From: Slawomir Koszewski Date: Wed, 11 Feb 2026 07:53:29 +0100 Subject: [PATCH] fix: updated container to use tini for proper signal handling. --- Dockerfile | 3 +++ entrypoint.sh | 2 +- package.json | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d6f7a34..e1efc3f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,6 +34,9 @@ FROM node:24-alpine AS production # Set working directory WORKDIR /app +# Install tini for signal forwarding and zombie reaping +RUN apk add --no-cache tini + # Copy package files COPY package*.json ./ diff --git a/entrypoint.sh b/entrypoint.sh index 759c535..0ffc774 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,3 +1,3 @@ #!/bin/sh set -e -exec node server.js \ No newline at end of file +exec /sbin/tini -- node server.js diff --git a/package.json b/package.json index cb239ea..2259fa1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jmespath-playground", - "version": "1.4.3", + "version": "1.4.4", "description": "A React-based web application for testing JMESPath expressions against JSON data", "main": "index.js", "scripts": {