Fixed the piping problem between wget and bash, and used docker buildx.

This commit is contained in:
2025-03-20 06:15:28 +03:00
parent a497d2c71a
commit 1581e7c5c7
2 changed files with 5 additions and 2 deletions

View File

@@ -16,7 +16,10 @@ sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install wget git
Run the setup script:
```bash
wget -qO- https://gitea.abdulhade.com/abdulhade/db-middleware/raw/branch/main/scripts/setup.sh | bash
mkdir -p ~/.db-middleware/scripts &&
cd ~/.db-middleware/scripts &&
wget -qO setup.sh https://gitea.abdulhade.com/abdulhade/db-middleware/raw/branch/main/scripts/setup.sh &&
bash setup.sh
```

View File

@@ -50,7 +50,7 @@ build_docker_image() {
fi
echo "Building Docker image..."
export DOCKER_BUILDKIT=1
if sudo docker build -t "$IMAGE_NAME" .; then
if sudo docker buildx build -t "$IMAGE_NAME" .; then
echo "Docker image built successfully."
return 0
else