high · dockerfile/wget-curl-without-checksum
Download without checksum verification
Downloading binaries without verifying checksums is a supply-chain risk.
Why it breaks the cache
Tampered remote artifacts can be installed silently.
Bad Dockerfile
RUN curl -L https://example.com/tool -o /usr/local/bin/tool
Good Dockerfile
RUN curl -L https://example.com/tool -o /usr/local/bin/tool && echo "<sha256> /usr/local/bin/tool" | sha256sum -c -
CLI
layerlint rules explain wget-curl-without-checksum