I'd like to speed up the container startup time but my healthcheck is not allowing me. Let's say I'm having this healthcheck
HEALTHCHECK --interval=300s --timeout=5s --start-period=5s --retries=3 CMD \
curl http://localhost:<port> > /dev/null || exit 1
What I want is to not wait 300+ seconds to start the container but check if it is healthy after e.g. 10s [maybe the app inside it is up and running after 10 seconds] and if everything is ok to start the container.
I need the interval to be 300+ seconds as I don't want to check the internal health of it more often than 1/300
How can I achieve that?