Pattern: Use of self-referencing ENV
variable
Issue: -
Docker will not expand a variable within the same ENV
statement where it is defined. While it will not crash Docker, it carries a high likelihood of errors.
Example of incorrect code:
ENV FOO=bar \
BAZ=${FOO}/bla
Example of correct code:
ENV FOO=bar
ENV BAZ=${FOO}/bla