forked from bbc/brave
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
67 lines (61 loc) · 1.42 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
FROM ubuntu:20.04
COPY . /brave
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -yq \
build-essential \
cmake \
gcc \
git \
libffi7 libffi-dev \
gobject-introspection \
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 \
libgstreamer1.0-dev \
libgstreamer-plugins-base1.0-dev \
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 \
libtiff5-dev \
libjpeg8-dev \
libopenjp2-7-dev \
zlib1g-dev \
libfreetype6-dev \
liblcms2-dev \
libwebp-dev \
tcl8.6-dev \
tk8.6-dev \
python3-tk \
libharfbuzz-dev \
libfribidi-dev \
libxcb1-dev \
libnss3-dev \
libnspr4-dev \
libatk1.0-dev
RUN cd brave/gst-WebRenderSrc && \
mkdir build && cd build && \
cmake -DCMAKE_INSTALL_PREFIX=/usr .. && \
make && make install
RUN cd brave && \
pip3 install pipenv sanic && \
pipenv install --ignore-pipfile && \
mkdir -p /usr/local/share/brave/output_images/
EXPOSE 5000
WORKDIR /brave
CMD ["pipenv", "run", "/brave/brave.py"]