forked from ianblenke/docker-coturn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (22 loc) · 1.31 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM alpine:latest
MAINTAINER Ian Blenke <ian@blenke.com>
ENV COTURN_VERSION 4.5.0.5
RUN apk add --no-cache --update bash curl git make build-base automake autoconf readline readline-dev gettext libcrypto1.0 libressl libressl-dev libevent libevent-dev linux-headers sqlite sqlite-libs sqlite-dev mariadb-libs mysql-dev postgresql postgresql-dev sqlite hiredis hiredis-dev jq && \
######################################################################
## Adding mongodb from alpine edge adds 130M to the 44M image size. ##
## Uncomment the apk line below if you really need this. ##
######################################################################
# apk add --no-cache --update --repository http://dl-4.alpinelinux.org/alpine/edge/testing mongodb && \
mkdir /build && \
wget http://coturn.net/turnserver/v${COTURN_VERSION}/turnserver-${COTURN_VERSION}.tar.gz && \
tar xzf turnserver-${COTURN_VERSION}.tar.gz -C /build/ --strip-components=1 && \
cd /build && \
./configure --prefix=/app && \
make install && \
rm -fr /build && \
apk del hiredis-dev postgresql-dev mysql-dev sqlite-dev linux-headers libevent-dev libressl-dev readline-dev automake autoconf build-base make git && \
rm -rf /var/cache/apk/*
WORKDIR /app
ADD coturn.sh /coturn.sh
RUN chmod u+rx /coturn.sh
CMD /coturn.sh