From 90f2c0ac063887b21bc247721466ed3c714eb406 Mon Sep 17 00:00:00 2001 From: Nico <47644445+nicotsx@users.noreply.github.com> Date: Mon, 29 Dec 2025 19:11:08 +0100 Subject: [PATCH] fix: boot with tini to correctly reap subprocesses and avoid zombies (#258) --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3ec7d898..c3448f9a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,9 @@ ARG BUN_VERSION="1.3.5" FROM oven/bun:${BUN_VERSION}-alpine AS base RUN apk upgrade --no-cache && \ - apk add --no-cache davfs2=1.6.1-r2 openssh-client fuse3 sshfs + apk add --no-cache davfs2=1.6.1-r2 openssh-client fuse3 sshfs tini + +ENTRYPOINT ["/sbin/tini", "-s", "--"] # ------------------------------ @@ -64,7 +66,7 @@ CMD ["bun", "run", "dev"] # ------------------------------ # PRODUCTION # ------------------------------ -FROM oven/bun:${BUN_VERSION} AS builder +FROM oven/bun:${BUN_VERSION}-alpine AS builder ARG APP_VERSION=dev