Skip to content

Instantly share code, notes, and snippets.

@kisna72
Created May 14, 2019 01:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kisna72/38b479b2798864da130b6bf027e50dc9 to your computer and use it in GitHub Desktop.
Save kisna72/38b479b2798864da130b6bf027e50dc9 to your computer and use it in GitHub Desktop.
# 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