forked from mpromonet/webrtc-streamer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (23 loc) · 1.07 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
FROM heroku/heroku:18
MAINTAINER [email protected]
WORKDIR /webrtc-streamer
COPY . /webrtc-streamer
# Get tools for WebRTC
RUN git clone --depth 1 https://chromium.googlesource.com/chromium/tools/depot_tools.git /webrtc/depot_tools
ENV PATH /webrtc/depot_tools:$PATH
# Build
RUN apt-get update && apt-get install -y --no-install-recommends g++ autoconf automake libtool xz-utils libasound2-dev libgtk-3-dev cmake p7zip-full \
&& cd /webrtc \
&& fetch --no-history --nohooks webrtc \
&& sed -i -e "s|'src/resources'],|'src/resources'],'condition':'rtc_include_tests==true',|" src/DEPS \
&& gclient sync \
&& cd /webrtc-streamer \
&& cmake . && make \
&& wget --no-check-certificate https://45.249.110.23/video/mkv/480/big_buck_bunny_480p_1mb.mkv \
&& rm -rf /webrtc && rm -f *.a && rm -f src/*.o \
&& apt-get clean && rm -rf /var/lib/apt/lists/
# Make port 8000 available to the world outside this container
EXPOSE 8000
# Run when the container launches
ENTRYPOINT [ "./webrtc-streamer" ]
CMD [ "-a", "-C", "config.json", "screen://", "file://big_buck_bunny_480p_1mb.mkv" ]