replicatedhq / dockerfilelint

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

Multi-Stage builds incorrectly expect a version label #183

Open Hades32 opened 2 years ago

Hades32 commented 2 years ago

E.g.

FROM alpine:3.13 as base

RUN apk add --no-cache nodejs~=14 npm~=14

FROM base as builder

COPY package.json package-lock.json ./
# ...

Complains about base not having a label