build-unit-test-docker: use heredoc-copy for wgetrc
The "heredoc" support in Docker can be a bit tedious with indented
content. Most of the examples do not indent it, but start at the
beginning [1].
To prevent any weird behavior with "RUN cat" heredoc's, we should
use the native "COPY heredoc" feature which is mentioned at the end
of the blog [1].
[1] https://www.docker.com/blog/introduction-to-heredocs-in-dockerfiles/
Fixes: f7e5261 ("build-unit-test-docker: Add .wgetrc for proxy")
Change-Id: I41b09c093fe5c5954e0411582806434ae6a148d0
Signed-off-by: Tan Siewert <tan@siewert.io>
1 file changed