11 lines
400 B
Bash
Executable File
11 lines
400 B
Bash
Executable File
#!/bin/bash -x
|
|
|
|
IMAGE=${1:-?echo "Error: You need to specify an image name as first argument"?}
|
|
if [[ -n $IMAGE ]]; then
|
|
cd ..
|
|
export BUILDKIT_PROGRESS=plain && docker build --pull --no-cache --rm=true -f docker/Dockerfile -t "$IMAGE" --build-arg BASE_HREF=/ .
|
|
echo "Docker image '$IMAGE' built successfully."
|
|
else
|
|
echo "Error: You need to specify an image name as first argument"
|
|
fi
|