From a497d2c71a30e14b1eb907134391042a177c8a8b Mon Sep 17 00:00:00 2001 From: abdulhade Date: Thu, 20 Mar 2025 06:02:03 +0300 Subject: [PATCH] Fixed Docker Buildkit deprecation and permission problem. --- scripts/manager.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/manager.sh b/scripts/manager.sh index 7dd836f..2b8d7e1 100755 --- a/scripts/manager.sh +++ b/scripts/manager.sh @@ -49,7 +49,8 @@ build_docker_image() { return 1 fi echo "Building Docker image..." - if docker build -t "$IMAGE_NAME" .; then + export DOCKER_BUILDKIT=1 + if sudo docker build -t "$IMAGE_NAME" .; then echo "Docker image built successfully." return 0 else @@ -294,7 +295,7 @@ install() { update_config print_header "Building the Docker Image..." - + if ! build_docker_image; then print_header "Failed to build Docker image." return 1