Fixed the piping problem between wget and bash, and used docker buildx.
This commit is contained in:
@@ -16,7 +16,10 @@ sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install wget git
|
|||||||
Run the setup script:
|
Run the setup script:
|
||||||
|
|
||||||
```bash
|
```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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ build_docker_image() {
|
|||||||
fi
|
fi
|
||||||
echo "Building Docker image..."
|
echo "Building Docker image..."
|
||||||
export DOCKER_BUILDKIT=1
|
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."
|
echo "Docker image built successfully."
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user