deploy gets stuck pushing a single large layer of a docker to the registry

I’ve been running into this issue for over a month now and have not figured it out.

When I analyze the docker image that I build locally, the total image size is 2GB with the largest layer at 1.5GB.

However, when i deploy with fly, a single layer is 5.6 GB and it gets close to deploying before retrying.

I’ve tried destroying the build machine and slimming down the instance. I’ve tried building with local-only as well (it takes forever as well). I’m not sure what else to do and considering migrating off Fly

So the unstructured python package completely bloated the image. Once I removed that, the layer size went down from 5.6 GB to 500MB and everything worked.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.