forked from bbc/brave
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
69 lines (59 loc) · 1.58 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
57
58
59
60
61
62
63
64
65
66
67
68
69
FROM ubuntu:19.10
# FROM amd64/debian:stretch-slim
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
RUN apt-get update && \
apt-get install -y \
build-essential \
gcc \
git \
libtool \
automake \
make \
cmake \
gtk-doc-tools \
libffi6 libffi-dev \
gobject-introspection \
libgstreamer1.0-dev \
libgstreamer-plugins-base1.0-dev \
gstreamer1.0-libav \
gstreamer1.0-nice \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-ugly \
gstreamer1.0-tools \
gir1.2-gst-plugins-bad-1.0 \
libcairo2-dev \
libgirepository1.0-dev \
pkg-config \
python3-dev \
python3-wheel \
python3-gst-1.0 \
python3-pip \
python3-gi \
python3-websockets \
python3-psutil \
python3-uvloop
RUN pip3 install pipenv sanic
COPY . /src
WORKDIR /src
RUN cd gst-WebRenderSrc && \
cmake -DCMAKE_BUILD_TYPE=Release . && \
CC=clang CXX=clang++ make -stdlib=g++ && \
make install
RUN git clone --depth 1 https://github.com/RidgeRun/gst-interpipe.git && \
cd gst-interpipe && \
./autogen.sh --libdir /usr/lib/x86_64-linux-gnu/gstreamer-1.0/ && \
make && \
make install
RUN pipenv install && \
mkdir -p /usr/local/share/brave/output_images/
#ARG BRAVE_REPO=bitwave-tv
#RUN git clone --depth 1 https://github.com/${BRAVE_REPO}/brave.git && \
# cd brave && \
# pip3 install pipenv sanic && \
# pipenv install && \
# mkdir -p /usr/local/share/brave/output_images/
EXPOSE 5000
CMD ["pipenv", "run", "/src/brave.py", "-c", "/config/config.yaml"]