ENV sets environment variables inside the image. Variables defined here are available in subsequent instructions and at runtime inside the container.
Example:
ENV MY_VERSION 1.3
RUN apt-get install -y mypackage=$MY_VERSION
Two formats:
ENV <KEY>=<VALUE>
ENV <KEY> <VALUE>
Andrew Dorokhov