When the following Dockerfile:
ENV A=123 \
B=$A
RUN echo $B
is run, it results in:
Step 2/2 : RUN echo $B
---> Running in x
---> y
Removing intermediate container z
When two ENV
layers are defined:
ENV A=123
ENV B=$A
it works:
Step 2/2 : RUN echo $B
---> Running in x
123
---> y
Removing intermediate container z