How to using env variables in Dockerfile?

Viewed 419
  1. How to using env variables in Dockerfile?
  2. not args

This is my Dockerfile now:

FROM node:12

I want Dockerfile:

FROM node:$version

How can I do it? If it is not possible, then I will create a feature request for Docker.

0 Answers
Related