fix: add tini init to devpod to reap zombie bun processes
bun --watch spawns new processes on file changes but code-server (PID 1) doesn't reap orphans, causing zombie accumulation and port conflicts. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -8,7 +8,7 @@ ENV PATH="/usr/local/bin:/root/.bun/bin:$PATH"
|
|||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
curl wget git openssh-server ca-certificates gnupg \
|
curl wget git openssh-server ca-certificates gnupg \
|
||||||
build-essential unzip zip jq tmux zsh ripgrep \
|
build-essential unzip zip jq tmux zsh ripgrep \
|
||||||
postgresql-client redis-tools haproxy \
|
postgresql-client redis-tools haproxy tini \
|
||||||
nano vim htop netcat-openbsd dnsutils iputils-ping \
|
nano vim htop netcat-openbsd dnsutils iputils-ping \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
@@ -44,4 +44,4 @@ RUN chmod +x /entrypoint.sh
|
|||||||
|
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
EXPOSE 8080 22
|
EXPOSE 8080 22
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/usr/bin/tini", "--", "/entrypoint.sh"]
|
||||||
|
|||||||
Reference in New Issue
Block a user