FROM debian:stretch EXPOSE 8080 ADD exploit.sh . RUN apt-get -y update && apt-get -y install wait-for-it curl CMD ["wait-for-it", "app:8080", "-t", "10", "--", "bash", "exploit.sh"]