This folder contains the Docker files that can be used to run ComfyStream in a containerized fashion or to work on the codebase within a dev container. This README contains the general usage instructions while the Devcontainer Readme contains instructions on how to use Comfystream inside a dev container and get quickly started with your development journey.
- Dockerfile - The main Dockerfile that can be used to run ComfyStream in a containerized fashion.
- Dockerfile.base - The base Dockerfile that can be used to build the base image for ComfyStream.
The base Docker image supports specifying a custom nodes configuration file during build time using the NODES_CONFIG build argument.
docker build -t livepeer/comfyui-base -f docker/Dockerfile .docker build -f docker/Dockerfile.base \
--build-arg NODES_CONFIG=nodes-streamdiffusion.yaml \
-t comfyui-base:streamdiffusion .docker build -f docker/Dockerfile.base \
--build-arg NODES_CONFIG=/path/to/custom-nodes.yaml \
-t comfyui-base:custom .| Argument | Default | Description |
|---|---|---|
BASE_IMAGE |
nvidia/cuda:12.8.1-cudnn-devel-ubuntu22.04 |
Base CUDA image |
CONDA_VERSION |
latest |
Miniconda version |
PYTHON_VERSION |
3.12 |
Python version |
NODES_CONFIG |
nodes.yaml |
Nodes configuration file (filename or path) |
CACHEBUST |
static |
Cache invalidation for node setup |
nodes.yaml- Full node configuration (default)nodes-streamdiffusion.yaml- Minimal set of nodes for faster builds
To build the main image, run the following command:
docker build -t livepeer/comfystream -f docker/Dockerfile .To start the container in interactive mode, run the following command:
docker run -it --gpus all livepeer/comfystreamTo start the Comfystream server, run the following command:
docker run --gpus all livepeer/comfystream --serverThere are multiple options that can be passed to the Comfystream server. To see the list of available options, run the following command:
docker run --gpus all livepeer/comfystream --help