-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
25 lines (20 loc) · 1.19 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
FROM alpine:latest
MAINTAINER Ian Blenke <ian@blenke.com>
ENV COTURN_VERSION 4.5.0.3
RUN apk add --no-cache --update bash curl git make build-base automake autoconf readline readline-dev gettext libcrypto1.0 openssl openssl-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 && \
git clone --branch ${COTURN_VERSION} https://github.com/coturn/coturn /build && \
cd /build && \
./configure --prefix=/app && \
make install && \
rm -fr /build && \
apk del hiredis-dev postgresql-dev mysql-dev sqlite-dev linux-headers libevent-dev openssl-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