Dockerfile rules
Command join¶
Commands in a Dockerfile should be joined together to reduce the number of layers in the resulting image.
Before
After
Missing yes flag¶
Installing a package in a Dockerfile needs a confirmation flag to avoid interactive prompts.
Before
After