-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
102 lines (84 loc) · 2.3 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
FROM ubuntu:20.04
USER root
ENV DEBIAN_FRONTEND noninteractive
RUN /usr/bin/apt-get update && \
/usr/bin/apt-get install -y curl && \
curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
/usr/bin/apt-get update && \
/usr/bin/apt-get upgrade -y && \
/usr/bin/apt-get install -y nodejs pulseaudio xvfb xdotool unzip
RUN apt-get update
RUN apt-get -y install software-properties-common
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt-get update && apt-get -y --no-install-recommends install \
sudo \
vim \
wget \
zip \
build-essential \
pkg-config \
python3.9 \
python3-pip \
python3-dev \
python3-numpy \
python3-matplotlib \
x11-apps
RUN apt-get update && apt-get -y install \
cmake \
git \
autoconf \
automake \
libtool \
libssl-dev \
libopenexr-dev \
libpng-dev \
libjpeg-dev \
libopenexr-dev \
libtiff-dev \
libopenblas-dev \
libwebp-dev \
libpoco-dev \
libdc1394-22-dev \
gstreamer-1.0 \
gstreamer1.0-dev \
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 \
libcurl4-openssl-dev \
gstreamer1.0-plugins-base-apps \
pkg-config \
m4 \
libgirepository1.0-dev \
libgstreamer-plugins-base1.0-dev \
libcairo2-dev \
gir1.2-gstreamer-1.0 \
python3-gi \
python-gi-dev \
virtualenv
RUN apt -y autoremove
RUN pip3 install wheel pip setuptools
COPY . /aws-streamer
WORKDIR /aws-streamer
RUN git clone https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp.git
RUN mkdir -p amazon-kinesis-video-streams-producer-sdk-cpp/build
WORKDIR /aws-streamer/amazon-kinesis-video-streams-producer-sdk-cpp/build
RUN cmake .. -DBUILD_GSTREAMER_PLUGIN=ON
RUN make
WORKDIR /aws-streamer
RUN python3 setup.py install
WORKDIR /aws-streamer
RUN chmod +x /aws-streamer/examples/serverless/run.sh
ENTRYPOINT ["/aws-streamer/examples/serverless/run.sh"]