#! /bin/bash
# Define the image name and tag
IMAGE_NAME="custom-n8n"
IMAGE_TAG="latest"
LOG_FILE="build.log"
# Build the custom Docker image and log the output
echo "Building the custom n8n image..."
docker build -t $IMAGE_NAME:$IMAGE_TAG . | tee $LOG_FILE
# Display success message
if [ ${PIPESTATUS[0]} -eq 0 ]; then
echo "Custom n8n image built successfully: $IMAGE_NAME:$IMAGE_TAG"
else
echo "Failed to build the custom n8n image. Check the log file: $LOG_FILE"
exit 1
fi
Comments
0 B
|👍
/👎