From 1d026c0bc48cdd203b23ee4a799373dae105bd14 Mon Sep 17 00:00:00 2001 From: xiagw Date: Sat, 20 May 2023 17:03:04 +0800 Subject: [PATCH] fix docker stop after 10s --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 400ea95a..242c15d6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ LABEL org.opencontainers.image.authors="https://github.com/deitch" # install the necessary client # the mysql-client must be 10.3.15 or later -RUN apk add --update 'mariadb-client>10.3.15' mariadb-connector-c bash python3 py3-pip samba-client shadow openssl coreutils && \ +RUN apk add --update 'mariadb-client>10.3.15' mariadb-connector-c bash python3 py3-pip samba-client shadow openssl coreutils dumb-init && \ rm -rf /var/cache/apk/* && \ touch /etc/samba/smb.conf && \ pip3 install awscli @@ -21,4 +21,5 @@ COPY functions.sh / COPY entrypoint /entrypoint # start -ENTRYPOINT ["/entrypoint"] +ENTRYPOINT [ "/usr/bin/dumb-init", "--" ] +CMD ["/entrypoint"]