Skip to content

Files

Latest commit

 

History

History
31 lines (20 loc) · 696 Bytes

DL3047.md

File metadata and controls

31 lines (20 loc) · 696 Bytes

Pattern: Use of wget without --progress

Issue: -

Description

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

Further Reading