From db104e2fd4718379511b7ff58ee2374ff0e8d8f0 Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Mon, 29 Dec 2025 18:46:29 +0100 Subject: [PATCH] fix: boot with tini to correctly reap subprocesses and avoid zombies --- 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