aboutsummaryrefslogtreecommitdiff
path: root/setup/docker/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'setup/docker/build.sh')
-rwxr-xr-xsetup/docker/build.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/setup/docker/build.sh b/setup/docker/build.sh
index 56d6fc518..f32335ead 100755
--- a/setup/docker/build.sh
+++ b/setup/docker/build.sh
@@ -18,7 +18,11 @@ cp -rf ./setup/default.xml ${tmp}
cp -rf ./schema ${tmp}/schema
cp -rf ./target/tracker-server.jar ${tmp}/traccar-server.jar
cp -rf ./target/lib ${tmp}/lib
-cp -rf ./traccar-web/web ${tmp}/web
+if [ -d ./traccar-web/web ]; then
+ cp -rf ./traccar-web/web ${tmp}/web
+else
+ mkdir ${tmp}/web
+fi
docker build -t ${company}/${software}:${version} ./setup/docker/