mirror of
https://github.com/aljazceru/cyphernode.git
synced 2026-01-18 20:14:23 +01:00
docker build command can now take Dockerfile as argument
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
build_docker_image() {
|
||||
|
||||
local dockerfile="Dockerfile"
|
||||
|
||||
if [[ ""$3 != "" ]]; then
|
||||
dockerfile=$3
|
||||
fi
|
||||
|
||||
trace "building docker image: $2:latest"
|
||||
docker build -q $1 -t $2:latest > /dev/null
|
||||
docker build -q $1 -f $1/$dockerfile -t $2:latest > /dev/null
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user