Yes. You can provide your own Dockerfile and have W&B Launch build the image for your run. This lets you control the build environment while still using Launch to queue and run jobs. This approach works well for projects with stable requirements but changing codebases.
After you configure the Dockerfile, specify it to Weights & Biases in one of the following ways:
- Use
Dockerfile.wandb
- Use W&B CLI
- Use W&B App
Dockerfile.wandb
W&B CLI
W&B App
Include a Dockerfile.wandb file in the same directory as the W&B run’s entrypoint. Weights & Biases uses this file instead of the built-in Dockerfile.
To queue a job, use the --dockerfile flag with the wandb launch command: When you add a job to a queue in the W&B App, provide the Dockerfile path in the Overrides section. Enter it as a key-value pair with "dockerfile" as the key and the path as the value.The following JSON shows how to include a Dockerfile from a local directory: Last modified on September 30, 2026