mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-19 10:53:29 +00:00
Updated docker-build.sh to include error handling for venv cp and in docker-compose.yml added image name tag
This commit is contained in:
parent
1ac7710b8d
commit
1c6acbaf1f
@ -9,10 +9,10 @@ fi
|
||||
|
||||
# Step 1: Build and start the container without mounting the venv volume
|
||||
echo "Building and starting the container to initialize the virtual environment..."
|
||||
docker-compose up --build -d
|
||||
COMPOSE_BAKE=true docker-compose up --build -d
|
||||
|
||||
# Wait for the container logs to indicate it's ready (looking for the custom message)
|
||||
container_name="comfyui-red-docker"
|
||||
container_name="comfyui-red-container"
|
||||
while ! docker logs "$container_name" 2>&1 | grep -q "Server started and ready to accept requests"; do
|
||||
echo "Waiting for the container to be fully started..."
|
||||
sleep 20
|
||||
|
@ -3,7 +3,8 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: comfyui-red-docker
|
||||
image: comfyui-red-image
|
||||
container_name: comfyui-red-container
|
||||
ports:
|
||||
- "8188:8188" # Expose the backend API or server
|
||||
volumes:
|
||||
|
Loading…
Reference in New Issue
Block a user