fix: boot with tini to correctly reap subprocesses and avoid zombies (#258)

This commit is contained in:
Nico 2025-12-29 19:11:08 +01:00 committed by GitHub
parent c05aa8d5bf
commit 90f2c0ac06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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