I cannot deploy my app because my image is apparently too large (it is 6.8GB compressed):
2024-09-28T21:03:32.843 runner[48e5939b304408] bos [info] Pulling container image registry.fly.io/knooki:deployment-01J8X7416P3DK4RYPAZ8SPSSQN
2024-09-28T21:05:36.529 runner[48e5939b304408] bos [error] Not enough space to unpack image, possibly exceeds maximum of 8GB uncompressed
Deploy a smaller image for your app. Maybe you don’t need all that data and can slim down the image a bit, or if you really need it all, you can load the rest onto a larger volume as part of your run command.
You could build the image locally with docker. E.g. with docker build -t knooki . (in the folder where your Dockerfile is. Then there multiple ways too look into it. The most simply way might be with Docker Desktop.
My Docker images are so large because of the indirect CUDA dependencies in PyTorch and some other indirectly included libraries. Although they are not used if a machine has no GPU, they are still there and hard to get rid of.
2024-09-30T08:25:15.190 runner[148e240df75798] ewr [info] Pulling container
image registry.fly.io/<redacted>:deployment-01J910GZZ5R4JMHYA68EC65P0X
2024-09-30T08:28:39.849 runner[148e240df75798] ewr [error] Not enough
space to unpack image, possibly exceeds maximum of 8GB uncompressed
I have no idea why docker builds a 2.65GB image, while fly builds a 6.8 GB image. Something seems a bit off, at the very minimum the reporting that would allow me to debug the issue.