是否可以在站点包中缩小 botocore?

Mar*_*oma 6 python amazon-web-services docker botocore

我刚刚发现我的 Web 应用程序 docker 镜像非常巨大。600 MB 的原因是我为其安装的软件包。最大的单一违规者是 botocore,大小为 77.7 MB。

显然这是已知的行为:https ://github.com/boto/botocore/issues/1629

是否可以减小该尺寸?

分析

有没有办法完全避免 botocore 或以任何其他方式减少 Docker 镜像的 botocore 大小?(我只使用S3)