dockerfilelint icon indicating copy to clipboard operation
dockerfilelint copied to clipboard

RUN: All chained commands should be parsed

Open fhemberger opened this issue 7 years ago • 0 comments

RUN apk update \
  && apk add ca-certificates \ 
  && rm -rf /var/cache/apk/*

=> "Consider --no-cache or --update with rm -rf /var/cache/apk/* (Optimization)"

The parser should detect the rm -rf … in the third line.

RUN apk update \
  && rm -rf /var/cache/apk/*

=> No error message.

fhemberger avatar Feb 04 '19 14:02 fhemberger