When HTTP_PROXY or http_proxy is set, send it to docker build (--build-arg) and to docker run (--env).