forked from irlserver/belacoder
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (19 loc) · 696 Bytes
/
Dockerfile
File metadata and controls
24 lines (19 loc) · 696 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM ubuntu:latest AS build
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && apt install build-essential git libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev cmake make wget xz-utils git build-essential libssl-dev openssl -y
# CERALIVE/srt fork (up-to-date fork with BELABOX patches)
# https://github.com/CERALIVE/srt
RUN mkdir -p /build; \
git clone https://github.com/CERALIVE/srt.git /build/srt; \
cd /build/srt; \
mkdir build && cd build; \
cmake -DCMAKE_INSTALL_PREFIX=/usr ..; \
make -j$(nproc); \
make install;
WORKDIR /ceracoder
COPY . .
RUN mkdir -p /cera-out/usr/bin/
RUN make
RUN cp ./ceracoder /cera-out/usr/bin/
FROM scratch AS export
COPY --from=build /cera-out /