aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/build-docker-otp
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build-docker-otp')
-rwxr-xr-xscripts/build-docker-otp5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/build-docker-otp b/scripts/build-docker-otp
index 928b84a32d..01bb0b628e 100755
--- a/scripts/build-docker-otp
+++ b/scripts/build-docker-otp
@@ -8,7 +8,8 @@ fi
ARCH="$1"
shift
-git archive --format=tar.gz --prefix=otp/ HEAD >otp.tar.gz
+git archive --format=tar.gz --prefix=otp/ HEAD >scripts/otp.tar.gz
-docker build -t otp --file scripts/Dockerfile.$ARCH .
+docker build -t otp --file scripts/Dockerfile.$ARCH scripts
+rm scripts/otp.tar.gz
docker run --volume="$PWD/logs:/buildroot/otp/logs" -i --rm otp ${1+"$@"}