top | item 43630853

(no title)

urxvtcd | 10 months ago

I'd love to indent the body of each stage in multi-stage dockerfiles, like:

    FROM foo
        ...

    FROM bar
        ...
It's easy to see at glance what's going on.

discuss

order

xyst|10 months ago

This reminds me of SQL indentation “best practices” discussion [1]

I personally don’t find this particularly helpful but can see it helping some folks. You write enough dockerfiles, the formatting becomes irrelevant.

What pisses me off though is _inconsistency_. One code base uses "formatting practices 1b", then another code base uses "formatting practices 2x". Then the worst offender: a service owners that can’t make up their mind and each developer makes up their own "best practices".

[1] https://stackoverflow.com/questions/272210/sql-statement-ind...