aboutsummaryrefslogtreecommitdiff
path: root/setup/docker
diff options
context:
space:
mode:
authorbvoudenaarde <oudenaar@gmail.com>2016-11-24 20:14:07 +0100
committerbvoudenaarde <oudenaar@gmail.com>2016-11-24 20:14:07 +0100
commitff4e575ecc79f0ccbb0a73d6b15c4415f7f8aece (patch)
tree77463ed1a05eb6f79c49282f61430e34dd3b44b6 /setup/docker
parent0a2dfffa373ef8e72aa75cb56f0916bb424c37d6 (diff)
downloadtrackermap-server-ff4e575ecc79f0ccbb0a73d6b15c4415f7f8aece.tar.gz
trackermap-server-ff4e575ecc79f0ccbb0a73d6b15c4415f7f8aece.tar.bz2
trackermap-server-ff4e575ecc79f0ccbb0a73d6b15c4415f7f8aece.zip
improve web-less setup
Diffstat (limited to 'setup/docker')
-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/