Answer the question
In order to leave comments, you need to log in
What does this command mean at the end of the Dockerfile?
at the end of the Dockerfil, the ENTRYPOINT script runs, which says the following:
script.sh
------------------------------------ -------------------------------------------------- -------
sleep infinity & wait $!
well, the first is clear, but why the second part of wait $! ?
Answer the question
In order to leave comments, you need to log in
$! - one of the "magic" bash variables, contains the pid of the last process
wait - I think it's understandable
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question