Dockerfile - parameterized FROM

Viewed 3548

I want to include arguments in the FROM section. Is this possible? In the Dockerfile, I have:

ARG VERSION
FROM tomcat:$VERSION

I build as following:

docker build --build-arg VERSION=8.0 .

I get the following error:

Please provide a source image with `from` prior to commit

I am using docker version 1.12.6.

1 Answers
Related