27 February 2019
tags:
Learnt it the hard way, but somewhat makes sense. Everytime FROM
keyword is used, the ENV
declared before will no longer be accessible. Simple reproduction:
FROM node:8 as builder ENV test=helloworld RUN echo $test # prints helloworld
FROM node:8-alphine RUN echo $test # prints nothing
- Previous: drag and drop adventures
- Next: Hello world (again).