From 2632c4419520b2b391faa4eda13f00580d75d6ef Mon Sep 17 00:00:00 2001 From: zhj9709 Date: Mon, 10 Feb 2025 22:31:23 +0800 Subject: [PATCH] fix docker stop issue by using tini for graceful shutdown --- .github/workflows/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Dockerfile b/.github/workflows/Dockerfile index fb45a23..61fc84e 100644 --- a/.github/workflows/Dockerfile +++ b/.github/workflows/Dockerfile @@ -18,7 +18,7 @@ RUN mkdir -p /tmp/output; \ FROM alpine:latest -RUN apk add --no-cache tzdata +RUN apk add --no-cache tzdata tini WORKDIR /app COPY --from=builder --chmod=755 /tmp/output/* /usr/local/bin @@ -36,4 +36,4 @@ EXPOSE 11011/tcp # wss EXPOSE 11012/tcp -ENTRYPOINT ["easytier-core"] +ENTRYPOINT ["/sbin/tini", "--", "easytier-core"]