There's a lot of knowledge to be had about buildpacks. Start with reading the main docs:
- https://devcenter.heroku.com/articles/buildpacks
- https://devcenter.heroku.com/articles/buildpack-api
bash inherently swallows errors thrown by commands. Use the following at the top of your compile script: