replicatedhq / dockerfilelint

An opinionated Dockerfile linter.
https://www.fromlatest.io
MIT License
989 stars 83 forks source link

Wrong error when creating a docker file that is using a base image from an argument #197

Open baruchoxman opened 1 year ago

baruchoxman commented 1 year ago

I have created a docker file that gets the base image name from a variable:

ARG BASE_IMAGE=my-image:base

# Use the base image
FROM $BASE_IMAGE
...

And I get the following error:

Issues: 1

Line 4: FROM $BASE_IMAGE
Issue  Category      Title                 Description
    1  Clarity       Base Image Missing    Base images should specify a tag to use.
                     Tag