79565933

Date: 2025-04-10 07:06:08
Score: 0.5
Natty:
Report link

You could build a separate base image with the stuff that takes a long time to build. You could also then trim down the size of that base image by deleting the stuff you don’t need during the build for the base image. You can then publish that to docker hub or ECR and build off that.

However, the size of the ultralytics package does not appear to be your problem. It’s taking 20 minutes to send 100MB of build context to the docker daemon. It should take nowhere near that long.

I’m guessing the bulk of that build context is best.onnx. So there’s either something weird with that file, or an issue with your docker set up. Try replacing it with a different 100MB file to determine which it is.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: andycaine