Skip to content

Conversation

@eliteprox
Copy link
Collaborator

This resolves an issue preventing comfyui-base from being used to download/build engines or run alternate entry commands like /bin/bash. The change improves usability of livepeer/comfyui-base

  • Added a new entrypoint script byoc-entrypoint.sh to streamline the execution of the BYOC server.
  • Updated the Dockerfile to copy the new entrypoint script and set appropriate permissions.
  • Expanded .dockerignore to exclude additional cache and build artifacts for cleaner Docker images.

…trypoint. Update .dockerignore to reduce image size

- Added a new entrypoint script `byoc-entrypoint.sh` to streamline the execution of the BYOC server.
- Updated the Dockerfile to copy the new entrypoint script and set appropriate permissions.
- Expanded `.dockerignore` to exclude additional cache and build artifacts for cleaner Docker images.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the flexibility of the comfyui-base Docker image by introducing a wrapper entrypoint script that allows users to run alternate commands (like /bin/bash or build/download commands) while maintaining backward compatibility with the default BYOC server execution.

Key changes:

  • Added a new byoc-entrypoint.sh wrapper script that conditionally executes the BYOC server or custom commands
  • Refactored the Dockerfile ENTRYPOINT to use the wrapper script instead of directly invoking conda run
  • Expanded .dockerignore to exclude common Python cache and build artifacts

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
docker/byoc-entrypoint.sh New entrypoint wrapper that allows running alternate commands while defaulting to BYOC server execution
docker/Dockerfile.base Updated to copy and use the new entrypoint script, enabling flexible command execution
.dockerignore Expanded to exclude additional cache directories and build artifacts for cleaner Docker images

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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
COPY ./docker/byoc-entrypoint.sh /usr/local/bin/byoc-entrypoint.sh
Copy link

Copilot AI Dec 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The byoc-entrypoint.sh script is copied after the entire source tree is copied at line 85 with "COPY . /workspace/comfystream". This means the script is already available at /workspace/comfystream/docker/byoc-entrypoint.sh, making this redundant COPY operation unnecessary. Consider removing this line or moving it before line 85 if you want to copy it independently of the full source tree.

Copilot uses AI. Check for mistakes.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <[email protected]>
@eliteprox eliteprox marked this pull request as draft December 24, 2025 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants