From ff4e575ecc79f0ccbb0a73d6b15c4415f7f8aece Mon Sep 17 00:00:00 2001 From: bvoudenaarde Date: Thu, 24 Nov 2016 20:14:07 +0100 Subject: improve web-less setup --- setup/docker/build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'setup/docker') 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/ -- cgit v1.2.3