forked from mpromonet/webrtc-streamer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (33 loc) · 989 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
FROM ubuntu:20.04
RUN apt-get update
# webrtc-streamer deps
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends libssl-dev libasound2 libgtk-3-0 libxtst6 libpulse0 avahi-utils
# gstreamer
RUN DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \
libgstreamer1.0-0 \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-ugly \
gstreamer1.0-libav \
gstreamer1.0-doc \
gstreamer1.0-tools \
gstreamer1.0-x \
gstreamer1.0-alsa \
gstreamer1.0-gl \
gstreamer1.0-gtk3 \
gstreamer1.0-qt5 \
gstreamer1.0-pulseaudio
RUN apt-get clean && rm -rf /var/lib/apt/lists/
#copy from CMake build
WORKDIR /app
COPY cmake-build-release/webrtc-streamer .
COPY html/ ./html/
COPY ./run.sh .
#check apps
RUN gst-launch-1.0 --version
RUN ./webrtc-streamer -V
#wrap script as entrypoint
CMD ./run.sh
#ENTRYPOINT [ "./webrtc-streamer" ]
#CMD [ "-a" ]