Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
**/__pycache__
**/*.py[cod]
.pytest_cache/
.mypy_cache/
.ruff_cache/
.cache/
.coverage
.hypothesis/
.benchmarks/
*.log
*.tgz
*.tar.gz
*.zip
dist/
build/
pip-wheel-metadata/
*.egg-info/
node_modules/
.env
.git/
.venv/
Expand Down
7 changes: 4 additions & 3 deletions docker/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ RUN conda run -n comfystream --cwd /workspace/comfystream --no-capture-output pi
COPY ./workflows/comfyui/* /workspace/ComfyUI/user/default/workflows/
COPY ./test/example-512x512.png /workspace/ComfyUI/input
COPY ./docker/entrypoint.sh /workspace/comfystream/docker/entrypoint.sh
RUN chmod +x /workspace/comfystream/docker/entrypoint.sh

# Install ComfyUI requirements
RUN conda run -n comfystream --no-capture-output --cwd /workspace/ComfyUI pip install -r requirements.txt --constraint /workspace/comfystream/src/comfystream/scripts/constraints.txt --root-user-action=ignore
Expand Down Expand Up @@ -118,7 +119,7 @@ RUN echo "conda activate comfystream" >> ~/.bashrc

WORKDIR /workspace/comfystream

# Run ComfyStream BYOC server from /workspace/ComfyUI within the comfystream conda env
ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "comfystream", "--cwd", "/workspace/ComfyUI", "python", "/workspace/comfystream/server/byoc.py"]
# Default args; can be overridden/appended at runtime
# Run ComfyStream BYOC server by default but allow overriding the command
ENTRYPOINT ["/workspace/comfystream/docker/entrypoint.sh"]
# Default args; can be overridden/appended at runtime or replaced entirely
CMD ["--workspace", "/workspace/ComfyUI", "--host", "0.0.0.0", "--port", "8000"]
9 changes: 9 additions & 0 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,15 @@ if [ "$START_COMFYUI" = true ] || [ "$START_API" = true ] || [ "$START_UI" = tru

# Keep the script running
tail -f /var/log/supervisord.log
exit 0
fi

# Activate conda environment
conda activate comfystream

# If no args or first arg is an option, run the BYOC server with default args.
if [[ $# -eq 0 || "$1" == -* ]]; then
set -- python /workspace/comfystream/server/byoc.py "$@"
fi

exec "$@"
Loading