From eeabbd3403bbfdcb3de14c5dfb8bffd649d8576b Mon Sep 17 00:00:00 2001 From: RobinFrcd <29704178+RobinFrcd@users.noreply.github.com> Date: Tue, 12 Apr 2022 17:07:26 +0200 Subject: [PATCH] Add dumb-init: catch signals --- packages/nocodb/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/nocodb/Dockerfile b/packages/nocodb/Dockerfile index a53a99aba2..8f8908f5b9 100644 --- a/packages/nocodb/Dockerfile +++ b/packages/nocodb/Dockerfile @@ -50,7 +50,8 @@ ENV NC_TOOL_DIR=/usr/app/data/ RUN apk --update --no-cache add \ nodejs \ - tar + tar \ + dumb-init # Copy litestream binary build COPY --from=lt-builder /usr/src/lt /usr/src/appEntry/litestream @@ -58,6 +59,7 @@ COPY --from=lt-builder /usr/src/lt /usr/src/appEntry/litestream COPY --from=builder /usr/src/appEntry/ /usr/src/appEntry/ EXPOSE 8080 +ENTRYPOINT ["/usr/bin/dumb-init", "--"] # Start Nocodb -ENTRYPOINT ["sh", "/usr/src/appEntry/start.sh"] +CMD ["/usr/src/appEntry/start.sh"]