forked from lynckia/licode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
47 lines (28 loc) · 973 Bytes
/
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
FROM ubuntu:20.04
LABEL maintainer="Lynckia"
WORKDIR /opt
#Configure tzdata
ENV TZ=Europe/Madrid
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Download latest version of the code and install dependencies
RUN apt-get update && apt-get install -y git wget curl
COPY .nvmrc package.json /opt/licode/
COPY scripts/installUbuntuDeps.sh scripts/checkNvm.sh scripts/libnice-014.patch0 /opt/licode/scripts/
WORKDIR /opt/licode/scripts
RUN ./installUbuntuDeps.sh --cleanup --fast
WORKDIR /opt
COPY . /opt/licode
RUN mkdir /opt/licode/.git
# Clone and install licode
WORKDIR /opt/licode/scripts
RUN ./installErizo.sh -dfEAcs && \
./../nuve/installNuve.sh && \
./installBasicExample.sh
RUN ldconfig /opt/licode/build/libdeps/build/lib
WORKDIR /opt/licode
ARG COMMIT
RUN echo $COMMIT > RELEASE
RUN date --rfc-3339='seconds' >> RELEASE
RUN cat RELEASE
WORKDIR /opt
ENTRYPOINT ["./licode/extras/docker/initDockerLicode.sh"]