-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
36 lines (26 loc) · 866 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
# SRT - https://github.com/Haivision/srt
#
#
FROM alpine:3.13 AS base
RUN apk add --no-cache --update ca-certificates libstdc++
############
# Build SRT.
FROM base AS build
RUN apk add --no-cache --update linux-headers curl cmake make g++ openssl-dev
ENV VERSION=1.4.3
ENV PREFIX=/usr/local
RUN \
DIR=/tmp/srt && \
mkdir -p ${DIR} && \
cd ${DIR} && \
curl -sLO https://github.com/Haivision/srt/archive/v${VERSION}.tar.gz && \
tar -xz --strip-components=1 -f v${VERSION}.tar.gz && \
cmake -DCMAKE_INSTALL_PREFIX="${PREFIX}" . && \
make && \
make install && \
rm -rf ${DIR}
##########################
# Build the release image.
FROM base AS release
ENV LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64
COPY --from=build /usr/local /usr/local