How to run your own docker commands during the build stage
build_commands
feature allows you to run custom Docker commands during the build stage, enabling advanced caching, dependency management, and environment setup.
Use Cases:
config.yaml
build_commands
to your config.yaml
:
build_commands
to create directories directly in the container.
model_cache
or external_data
.wget
in build_commands
:
build_commands
feature lets you execute any shell command as if running it locally, with the benefit of caching the results at build time.
Key Benefits: