Dockerfile: healthcheck dont use sh
- interpreter already set in the scripts not need to use /bin/sh -c Signed-off-by: Lakshya Singh <lakshay.singh1108@gmail.com>
This commit is contained in:
parent
94d4178b9e
commit
8aa940abf1
@ -136,6 +136,6 @@ ENTRYPOINT ["/entrypoint.sh"]
|
||||
RUN bitcoind -version | grep "Bitcoin Core version v${BITCOIN_VERSION}"
|
||||
|
||||
HEALTHCHECK --interval=10s --timeout=20s --start-period=30s \
|
||||
CMD ["/bin/sh", "-c", "/healthcheck.sh"]
|
||||
CMD ["/healthcheck.sh"]
|
||||
|
||||
CMD ["bitcoind"]
|
||||
|
@ -159,7 +159,7 @@ RUN pip3 install \
|
||||
packaging
|
||||
|
||||
HEALTHCHECK --interval=5s --timeout=10s --start-period=5s \
|
||||
CMD ["/bin/sh", "-c", "/healthcheck.sh"]
|
||||
CMD ["/healthcheck.sh"]
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD ["lightningd"]
|
||||
|
@ -45,7 +45,7 @@ RUN chmod +x /healthcheck.sh
|
||||
VOLUME ["${TXOO_DATA}"]
|
||||
|
||||
HEALTHCHECK --interval=5s --timeout=10s --start-period=5s \
|
||||
CMD ["/bin/sh", "-c", "/healthcheck.sh"]
|
||||
CMD ["/healthcheck.sh"]
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD ["txood"]
|
||||
|
0
txood/healthcheck.sh
Normal file → Executable file
0
txood/healthcheck.sh
Normal file → Executable file
@ -61,7 +61,7 @@ VOLUME ["${VLS_DATA}"]
|
||||
USER vls
|
||||
|
||||
HEALTHCHECK --interval=10s --timeout=10s --start-period=10s \
|
||||
CMD ["/bin/sh", "-c", "/healthcheck.sh"]
|
||||
CMD ["/healthcheck.sh"]
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user