[x] I searched existing issues before opening this one
Expected behavior
pass linting
Actual behavior
error:
[
{
"code": "DL1000",
"column": 39,
"file": "repo1/gitlab-base/Dockerfile",
"level": "error",
"line": 40,
"message": "unexpected ':'\nexpecting '@', '\\', a new line followed by the next instruction, or the image tag"
}
]
Steps to reproduce the behavior
use variable expression in a Dockerfile:
# hadolint ignore=DL1000
FROM ${BASE_REGISTRY:-}${BASE_REGISTRY:+/}${BASE_IMAGE}:${BASE_TAG}
most basic would be:
Output of hadolint --version or
docker run --rm hadolint/hadolint hadolint --version or
docker run --rm ghcr.io/hadolint/hadolint hadolint --version:
Expected behavior
pass linting
Actual behavior
error:
Steps to reproduce the behavior
use variable expression in a Dockerfile:
most basic would be:
Output of
hadolint --version
ordocker run --rm hadolint/hadolint hadolint --version
ordocker run --rm ghcr.io/hadolint/hadolint hadolint --version
:Dockerfile (if relevant)
Additional environment details (OS, stack version, etc.)