Skip to content

Commit ab2c730

Browse files
authored
fix(docker): run under tini to reap zombie processes (#137)
1 parent 36ba5f0 commit ab2c730

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ ENV NODE_ENV=production
4646
RUN apt-get update \
4747
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
4848
ca-certificates \
49+
tini \
4950
&& rm -rf /var/lib/apt/lists/*
5051

5152
# `openclaw update` expects pnpm. Provide it in the runtime image.
@@ -71,4 +72,7 @@ COPY src ./src
7172
# Railway injects PORT at runtime and routes traffic to that port.
7273
# If we force a different port, deployments can come up but the domain will route elsewhere.
7374
EXPOSE 3000
75+
76+
# Ensure PID 1 reaps zombies and forwards signals.
77+
ENTRYPOINT ["tini", "--"]
7478
CMD ["node", "src/server.js"]

0 commit comments

Comments
 (0)