Dockerfile 1018 Bytes
Newer Older
1 2 3 4
FROM ubuntu:16.04
MAINTAINER openvidu@gmail.com

# Install Kurento Media Server (KMS) 
5
RUN echo "deb [arch=amd64] http://ubuntu.openvidu.io/6.7.2 xenial kms6" | tee /etc/apt/sources.list.d/kurento.list \
6 7 8 9 10
	&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5AFA7A83 \
	&& apt-get update \
	&& apt-get -y dist-upgrade \
	&& apt-get -y install kurento-media-server \
	&& apt-get -y install openh264-gst-plugins-bad-1.5
11 12

# Install Java
13
RUN apt-get install -y openjdk-8-jdk
14

15 16 17 18 19
# Install npm and http-server
RUN apt-get -y install curl && apt-get update && curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN apt-get install -y nodejs
RUN npm install -g http-server

20 21
# Configure Supervisor
RUN mkdir -p /var/log/supervisor
22
RUN apt-get install -y supervisor && rm -rf /var/lib/apt/lists/*
23 24 25 26 27 28 29

# Copy all files
COPY kms.sh /kms.sh
COPY web /web/
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY openvidu-server.jar openvidu-server.jar

30
EXPOSE 4443
31 32 33

# Exec supervisord
CMD ["/usr/bin/supervisord"]