Multistage allows us to get rid of all the dependencies from the build stage, leaving just the compiled binary in the final image. Saves on heaps of storage space, keeps our apps slim!
Fortunately umbrel doesn't need multistage builds to run (only for submission), so you can test a lazy single-stage Dockerfile just fine, and then make it multistage when it's ready to submit!
build
stage, leaving just the compiled binary in the final image. Saves on heaps of storage space, keeps our apps slim!