mirror of
https://github.com/aljazceru/cyphernode.git
synced 2025-12-19 21:55:00 +01:00
13 lines
221 B
Bash
13 lines
221 B
Bash
build_docker_image() {
|
|
|
|
local dockerfile="Dockerfile"
|
|
|
|
if [[ ""$3 != "" ]]; then
|
|
dockerfile=$3
|
|
fi
|
|
|
|
trace "building docker image: $2:latest"
|
|
docker build -q $1 -f $1/$dockerfile -t $2:latest > /dev/null
|
|
|
|
}
|