diff --git a/lunar_pole_exploration_rover/build.sh b/lunar_pole_exploration_rover/build.sh index 79625d77..133acc7a 100755 --- a/lunar_pole_exploration_rover/build.sh +++ b/lunar_pole_exploration_rover/build.sh @@ -14,9 +14,14 @@ echo "" echo "##### Building Space ROS Demo Docker Image #####" echo "" +# get the folder of the script +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +DOKCERDIR="$DIR/Dockerfile" + docker build -t $ORG/$IMAGE:$TAG \ --build-arg VCS_REF="$VCS_REF" \ - --build-arg VERSION="$VERSION" . \ + --build-arg VERSION="$VERSION" $DIR \ + -f $DOKCERDIR echo "" echo "##### Done! #####"