Apify Discord Mirror

Updated 5 months ago

Improving Actor start-up time #DockerImageSize

At a glance

The community member is looking for a concrete example on how to use the Apify standardized images to improve the startup time of a Python-based Apify actor. The community member has found some documentation on this topic, but is still seeking a more detailed example. In the comments, another community member suggests using the Apify CLI to create the initial project structure, and also recommends looking at the Python-based actor templates on the Apify GitHub repository to see how the .actor/Dockerfile is set up.

Useful resources
Hello πŸ‘‹ there is a few documentation on how to improve the actor startup time one solution is described here https://docs.apify.com/platform/actors/development/performance#:~:text=Use%20standardized%20images%20to%20accelerate,Dockerfile%20need%20to%20be%20pulled. "Use standardized images to accelerate Actor startup times
Using one of Apify's standardized images, can accelerate the Actor startup time. These images are cached on each worker machine, so only the layers you added in your Actor's Dockerfile need to be pulled." . But no concrete example on how to use https://github.com/apify/apify-actor-docker in python actor. Any help or contribution is welcome thanks.
P
1 comment
Hi @MImi ,

We highly suggest you to use apify-cli for creating initial project structure. Or maybe take a look at https://github.com/apify/actor-templates/tree/master/templates select python based project and check its .actor/Dockerfile
Add a reply
Sign up and join the conversation on Discord