Skip to main content

Can I specify a Dockerfile and let W&B build a Docker image for me?

This feature suits projects with stable requirements but frequently changing codebases.

important

Format your Dockerfile to use mounts. For further details, visit the Mounts documentation on the Docker Docs website.

After configuring the Dockerfile, specify it in one of three ways to W&B:

  • Use Dockerfile.wandb
  • Use W&B CLI
  • Use W&B App

Include a Dockerfile.wandb file in the same directory as the W&B run's entrypoint. W&B utilizes this file instead of the built-in Dockerfile.

Was this page helpful?๐Ÿ‘๐Ÿ‘Ž