dockerfilelint icon indicating copy to clipboard operation
dockerfilelint copied to clipboard

Suggest merging multiple env directives into one

Open devunt opened this issue 8 years ago • 1 comments

As documentation describes, using merged form of ENV directives is preferred over the single form since it will yield smaller intermediate layers and containers.

Hence suggesting changing

ENV myName John Doe
ENV myDog Rex The Dog
ENV myCat fluffy

to

ENV myName="John Doe" \
    myDog="Rex The Dog" \
    myCat="fluffy"

seems reasonable.

devunt avatar Aug 24 '17 08:08 devunt

Agreed, thanks for the suggestion!

nexdrew avatar Dec 04 '17 15:12 nexdrew