docker images: clean kill using tini

- PID 1 does not have default signal handlers which causes
unclean shutdown of processes
Signed-off-by: Lakshya Singh <lakshay.singh1108@gmail.com>
This commit is contained in:
Lakshya Singh
2024-05-25 18:24:49 +05:30
parent 42c340b5ac
commit a2b9be40e7
4 changed files with 12 additions and 8 deletions

View File

@@ -103,7 +103,8 @@ RUN apk --no-cache add \
boost-thread \
sqlite-dev \
libevent \
libzmq
libzmq \
tini
ARG BITCOIN_VERSION
ARG BITCOIN_PREFIX=/opt/bitcoin-${BITCOIN_VERSION}
@@ -129,7 +130,7 @@ VOLUME ["${BITCOIN_DATA}"]
USER bitcoin
ENTRYPOINT ["/entrypoint.sh"]
ENTRYPOINT ["/sbin/tini", "--", "/entrypoint.sh"]
RUN bitcoind -version | grep "Bitcoin Core version v${BITCOIN_VERSION}"