1
0
mirror of https://github.com/coturn/coturn.git synced 2025-10-23 12:00:59 +02:00
coturn/build-docker.sh
Hui Kang 5eb9bc311b Build by docker
To build, run ./build-docker.sh.
The outputs will be in the same directory.

Signed-off-by: Hui Kang <kangh@us.ibm.com>
2017-05-16 17:30:25 +00:00

16 lines
366 B
Bash
Executable File

#!/bin/bash
set -o xtrace
dir=`pwd`
echo "$dir"
build_image=coturnbuild
dockerargs="--privileged -v ${dir}:/root/coturn -w /root/coturn"
container_env=' -e "INSIDECONTAINER=-incontainer=true"'
docker="docker run --rm -it ${dockerargs} ${container_env} ${build_image}"
docker build -f Dockerfile.build -t ${build_image} .
${docker} bash -c "./configure && make"