Pattern: Use of wget
without --progress
Issue: -
wget
without flag --progress
will result in excessively bloated build logs when downloading larger files. That's because it outputs a line for each fraction of a percentage point while downloading a big file.
Example of incorrect code:
FROM ubuntu:20
RUN wget https://example.com/big_file.tar
Example of correct code:
FROM ubuntu:20
RUN wget --progress=dot:giga https://example.com/big_file.tar
FROM ubuntu:20
RUN wget -nv https://example.com/big_file.tar