-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
executable file
·56 lines (34 loc) · 1.39 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
FROM ubuntu:16.04
MAINTAINER dengquanjie@giant.com
RUN apt-get update -y && apt-get upgrade -y
RUN apt-get install -y tzdata && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
WORKDIR /opt
# Download latest version of the code and install dependencies
RUN apt-get update && apt-get install -y git wget curl
RUN apt-get install -y python-pip python-dev build-essential
RUN apt-get install -y python3-pip
RUN apt-get install -y net-tools
RUN apt-get install -y curl
RUN apt-get remove -y python-pip python3-pip
COPY ./get-pip.py /op/mediasoup-signal/
RUN python /op/mediasoup-signal/get-pip.py
RUN python3 /op/mediasoup-signal/get-pip.py
COPY .nvmrc package.json /opt/mediasoup-signal/
COPY scripts/installUbuntuDeps.sh scripts/checkNvm.sh /opt/mediasoup-signal/scripts/
WORKDIR /opt/mediasoup-signal/scripts
RUN ./installUbuntuDeps.sh --cleanup --fast
WORKDIR /opt
COPY . /opt/mediasoup-signal
RUN rm -rf /opt/mediasoup-signal/.git
RUN mkdir /opt/mediasoup-signal/.git
# Clone and install licode
WORKDIR /opt/mediasoup-signal/scripts
RUN ./installErizo.sh && \
./../nuve/installNuve.sh
WORKDIR /opt/mediasoup-signal
ARG COMMIT
RUN echo $COMMIT > RELEASE
RUN date --rfc-3339='seconds' >> RELEASE
RUN cat RELEASE
WORKDIR /opt
ENTRYPOINT ["./mediasoup-signal/extras/docker/initDockerLicode.sh"]