Skip to content

Commit

Permalink
Set config options for healthcheck for faster start
Browse files Browse the repository at this point in the history
  • Loading branch information
Ancient123 committed Oct 18, 2023
1 parent e05bb67 commit e7e902d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile.l1
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ COPY entrypoint-l1.sh /entrypoint.sh

VOLUME ["/db"]

HEALTHCHECK CMD curl --fail http://localhost:8545 -X POST -H "Content-Type: application/json" --data '{"method":"eth_chainId","params":[],"id":1,"jsonrpc":"2.0"}'
HEALTHCHECK --start-period=300s --start-interval=1s CMD curl --fail http://localhost:8545 -X POST -H "Content-Type: application/json" --data '{"method":"eth_chainId","params":[],"id":1,"jsonrpc":"2.0"}'

ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]

0 comments on commit e7e902d

Please sign in to comment.