-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
58 lines (44 loc) · 1.17 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
# syntax=docker/dockerfile:1
ARG ARCH
FROM $ARCH/ubuntu:18.04 as base
RUN <<EOF
apt-get update
apt-get install -y --no-install-recommends \
qemu-user-static \
libssl-dev \
libcurl4-openssl-dev \
liblog4cplus-dev \
libgstreamer1.0-dev \
libgstreamer-plugins-base1.0-dev \
gstreamer1.0-plugins-base-apps \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-ugly \
gstreamer1.0-tools \
ca-certificates \
cmake \
pkg-config \
m4 \
git \
g++-5
rm -rf /var/lib/apt/lists/*
EOF
WORKDIR /opt/app/
ARG KVS_CPP_PRODUCER_SDK_TAG=v3.3.1
RUN git clone --recursive https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp.git -b $KVS_CPP_PRODUCER_SDK_TAG
WORKDIR /opt/app/amazon-kinesis-video-streams-producer-sdk-cpp/build
ENV CC=/usr/bin/gcc-5
ENV CXX=/usr/bin/g++-5
RUN <<EOF
cmake .. -DBUILD_GSTREAMER_PLUGIN=TRUE
make
EOF
FROM $ARCH/ubuntu:18.04
COPY --from=base /opt/app /opt/app/
WORKDIR /opt/app/amazon-kinesis-video-streams-producer-sdk-cpp/build/
RUN <<EOF
apt-get update
apt-get install -y gstreamer1.0-tools libssl-dev gstreamer1.0-rtsp gstreamer1.0-plugins-bad
EOF
COPY start_stream.sh .
COPY LICENSE /opt/app