1 DL3047
José Lorenzo Rodríguez edited this page 2021-03-16 11:16:38 +01:00

Use wget --progress to avoid excessively bloated build logs

Problematic code:

FROM ubuntu:20
RUN wget https://example.com/big_file.tar

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

Rationale:

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.