Actor builds
Before an Actor can be run, it needs to be built. The build process creates a snapshot of a specific version of the Actor's settings, including its source code and environment variables. This snapshot is then used to create a Docker image containing everything the Actor needs for its run, such as npm packages, web browsers, etc.
Build numbers
Each build is assigned a unique build number in the format MAJOR.MINOR.BUILD (e.g. 1.2.345):
- MAJOR.MINOR corresponds to the Actor version number
- BUILD is an automatically incremented number starting at 1.
Build resources
By default, builds have the following resource allocations:
- Timeout: 1800 seconds
- Memory:
4096 MB
Check out the Resource limits section for more details.
Versioning
To support active development, Actors can have multiple versions of source code and associated settings, such as the base image and environment. Each version has a number in the major.minor format, following semantic versioning principles.
For example, an Actor might have:
- Production version
1.1 - Beta version
1.2that contains new features but is still backward compatible - Development version
2.0that contains breaking changes
See also Version public Actors.
Tags
Tags simplify the process of specifying which build to use when running an Actor. Instead of using a version number, you can use a tag such as latest or beta. A tag points to only one build and always points to the newest build of the version it belongs to.
By default, the builds are set to the latest tag.
Cache
Builds triggered via API use cached Docker images and layers by default instead of pulling the latest copies and building each layer from scratch. To run a clean build, set the useCache=0 parameter. Note that the cached images and layers might not always be available on the server building the image, so the cache only works on a best-effort basis.
Clean builds
By default, Apify Console uses cached data when starting a build.
To run a clean build without using the cache:
- Go to your Actor page.
- Select Source > Code.
- Expand Build options and choose Clean build.