CA
other-emerald
Making my Docker image more efficient
From since I added browser to my stack, the builds take 2 and more minutes. I'm trying to make the builds more efficient, but I'm no expert in setting up the image, so I'd appreciate any help. This is what I do right now:
Is there a way to make it faster?
4 Replies
View post on community site
This post has been pushed to the community knowledgebase. Any replies in this thread will be synced to the community site.
Apify Community
Hey, you could use apify/actor-python-playwright as a base image, which already has the browser preinstalled...so you could skip the
poetry run playwright install chromium --with-deps
part.
the image is 3 months old but there are plans to update it more oftenadverse-sapphire•8mo ago
Hi @Honza Javorek, I use a new Python package and project manager, written in Rust named uv: https://docs.astral.sh/uv/. Is extremely fast and work very well for me. Here you have how I configure all my docker images in my actors:
Before it took 60 to 80 seconds to build, now it takes 11 to 15 seconds... about x5 faster...
Try it...
other-emeraldOP•8mo ago
Thanks!