When I attempt to deploy my python (flask) application to heroku, I get the error that the slug size is too large
. I’m not sure what would be taking up this much space. Then I run the command below.
$ du -ha --max-depth 1 /app | sort -hr
286M /app
266M /app/.heroku
14M /app/.apt
6.9M /app/lang
24K /app/.profile.d
8.0K /app/requirements.txt
4.0K /app/runtime.txt
4.0K /app/requirements.in
4.0K /app/README.md
4.0K /app/Procfile
4.0K /app/Aptfile
Is there any way to reduce the size of /app/.heroku
. I’ve been told this holds the python binaries? How can I reduce?