Hi @AlexM
There isnโt currently a way to bring a pre-built container image into serverless notebooks/jobs. Serverless supports custom environment YAML files and dependency installation/caching, but Databricks Container Services isnโt supported on serverless compute.
So if the goal is to reduce startup time and avoid repeated installs, the best-supported path today is usually to use a workspace-based environment... which is a reusable YAML spec that defines the serverless environment version plus your additional Python packages. Those base environments are pre-built and cached, helping notebooks and jobs start faster.
Also note that Init scripts / compute policies arenโt available on serverless, so environment customisation needs to go through the Environment panel / YAML route rather than cluster bootstrap logic. Databricks says it automatically caches the notebook virtual environment, so reopening an existing notebook usually doesnโt require reinstalling everything again, even after inactivity. That cache behaviour also helps jobs when tasks in the same run share the same dependency set.
For serverless jobs using custom base environments, only the dependencies required for the task are installed at runtime. If your use case needs fully baked images or OS/system-level packages, Iโd probably look at standard or dedicated compute with Databricks Container Services instead of serverless.
If this answer resolves your question, could you mark it as โAccept as Solutionโ? That helps other users quickly find the correct fix.
Regards,
Ashwin | Delivery Solution Architect @ Databricks
Helping you build and scale the Data Intelligence Platform.
***Opinions are my own***