Created
May 14, 2019 01:47
-
-
Save kisna72/38b479b2798864da130b6bf027e50dc9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# base image | |
FROM node:12.1.0 | |
# | |
# All your other docker statements | |
# | |
# Add wait-for-it | |
COPY wait-for-it.sh wait-for-it.sh | |
RUN chmod +x wait-for-it.sh | |
ENTRYPOINT [ "/bin/bash", "-c" ] | |
CMD ["./wait-for-it.sh" , "[ENTER YOUR ENDPOINT HERE]" , "--strict" , "--timeout=300" , "--" , "YOUR REAL START COMMAND"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment