"Empty continuation lines will become errors"… how should I comment my Dockerfile now?

17.07.0-ce started to warn on empty continuation lines. However, it incorrectly treated comment-only lines as empty. This is fixed in moby#35004, and being included in the 17.10.0-ce.


You could break the RUN commands out on to separate lines, and then use the experimental (at time of writing*) --squash command.


* note that it's been suggested that multi-stage builds might make --squash redundant. That is actively being discussed here, with a proposal open here.