From ca9a333d2486e6790b63071f114cdb0c31fa1dfb Mon Sep 17 00:00:00 2001 From: stevedan Date: Mon, 9 Sep 2024 17:22:48 +0200 Subject: [PATCH] Fix build path issue(fix issue #36) Signed-off-by: stevedan --- lunar_pole_exploration_rover/build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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! #####"