How to use variables in FROM of Dockerfile
Use ARG
before FROM
.
Dockerfile:
|
|
And docker build
with args.
|
|
You can build a container FROM ANY_IMAGE:hoge
.
Use ARG
before FROM
.
Dockerfile:
|
|
And docker build
with args.
|
|
You can build a container FROM ANY_IMAGE:hoge
.