Build your image
Thereactor init template includes a Dockerfile optimized for Reactor. Build it from your project root:
Dockerfile best practices
- Use CUDA base images matching your target GPU (e.g.,
nvidia/cuda:12.1.0-runtime-ubuntu22.04) - Install Python dependencies first to leverage Docker layer caching
- Copy model code last so code changes don’t invalidate the dependency layer
- Avoid including weights in the image. Upload weights separately via
model weights. This keeps images small and lets you version weights independently. - Set the correct entrypoint. The Reactor runtime expects a specific startup command, which is preconfigured in the template Dockerfile.
Tag for your registry
Your registry URL is shown byreactor auth status. Tag your image with the full registry path:
Push
First, authenticate Docker with your registry:Troubleshooting
| Error | Fix |
|---|---|
| Auth credentials missing | Run reactor auth docker-login to refresh. Tokens expire every 12 hours. |
| Authorization token expired | Run reactor auth docker-login again. |
| Push is slow or timing out | Reduce image size with a .dockerignore. Don’t bake weights into the image. |
| Manifest unknown | Double-check your image tag. The registry is case-sensitive. |