Closed maltris closed 6 years ago
The upside of && is that if a command fails, the rest of the commands will not be executed. How does RUN
handle that?
Its very easy to try:
Dockerfile:
RUN exit 1
Output:
Step 8/10 : RUN exit 1
---> Running in 8ffbeff600d4
The command '/bin/sh -c exit 1' returned a non-zero code: 1
Hi, will it be merged? :)
Its good to make separate layers by running commands separately (e. g. in order to speed up development).