Apify

Apify and Crawlee Official Forum

b
F
A
J
A

Question: About docker image size

Hello Team! Does reducing Docker size will reduce loading time and make the Actor load faster ... or ... is it the same ?
Thank You!
Attachment
Screenshot_2024-06-14_173524.png
1
M
J
!
5 comments
Yes, a smaller Docker image's size slightly decreases startup times, but don't expect huge differences.
55.6 MB, did you manage to shrink chrome that much? Or is this HTTP only?
yes, its Python HTTP only
Hello @!!!Joefree!!! πŸ‘‘ wonder how you did decrease the image size that low ? Also using http only and it is curently 165MB
Try using a smaller base image, copy as little as possible, using multi-stage builds.
I've shrunk the image by switching to rust and using FROM scratch for base image :rustcrab:
Attachment
image.png
Add a reply
Sign up and join the conversation on Discord
Join