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:
RedsAnalysis 2025-03-15 02:42:10 -04:00
parent 1ac7710b8d
commit 1c6acbaf1f
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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: