Skip to content

Commit

Permalink
Merge pull request coturn#133 from huikang/dockerfile
Browse files Browse the repository at this point in the history
Build by docker
  • Loading branch information
mom040267 authored Oct 1, 2017
2 parents af09102 + 5eb9bc3 commit f0376e8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM ubuntu:16.04

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
emacs-nox \
build-essential \
libssl-dev sqlite3 \
libsqlite3-dev \
libevent-dev \
g++ \
libboost-dev \
libevent-dev
15 changes: 15 additions & 0 deletions build-docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/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"

0 comments on commit f0376e8

Please sign in to comment.