Cache misses are more likely to happen when grouping RUN commands. If it inflates the end image too much, multi-stage images can be used to have a more bare final image without all the build stages.
Edit: otherwise, I'd say these are all sensible guidelines.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Cache misses are more likely to happen when grouping
RUN
commands. If it inflates the end image too much, multi-stage images can be used to have a more bare final image without all the build stages.Edit: otherwise, I'd say these are all sensible guidelines.