Heroku编译的slug大小太大但找不到大文件

wgx48brx  于 2022-11-13  发布在  其他
关注(0)|答案(1)|浏览(112)

我正在尝试构建一个Python应用程序(使用streamlit),
Compiled slug size: 664M is too large (max is 500M).
但是,当我跑

heroku run bash -a pitchcast
$ du -ha --max-depth 1 /app

唯一显示出来的是

4.0K    /app

大文件在哪里?如何减少它们?

bfrts1fy

bfrts1fy1#

回答我自己的问题:看起来大小是由Python库引起的,特别是tensorflow。从tensorflow切换到tensorflow-cpu使其小于500M

相关问题