Breaking Up Long Lines in Your Dockerfile

I try to limit my line characters to 79-80 per line. For example check this 122 character multi-command line: RUN wget -O afile.tar.gz http://example.com/afile.tar.gz && tar -xvf afile.tar.gz -C /usr/src/myapp && rm afile.tar.gz You will need to scroll horizontally using your text editor to see the super long crazy line. This is not efficient and …