docker: fix hooks

They are executed from the directory containing the Dockerfile
This commit is contained in:
Giovanni Campagna 2019-08-30 23:13:28 +02:00
parent 1c0a71aa0b
commit dcb4f020ae
1 changed files with 2 additions and 2 deletions

View File

@ -6,10 +6,10 @@ echo "Running in $(pwd)"
case $DOCKER_TAG in
*-cuda)
docker build --build-arg BASE_IMAGE=cuda:10.1-runtime-ubi7 -f $DOCKERFILE_PATH -t $IMAGE_NAME .
docker build --build-arg BASE_IMAGE=cuda:10.1-runtime-ubi7 -f $(basename $DOCKERFILE_PATH) -t $IMAGE_NAME ..
;;
*)
docker build -f $DOCKERFILE_PATH -t $IMAGE_NAME .
docker build -f $(basename $DOCKERFILE_PATH) -t $IMAGE_NAME ..
;;
esac