forked from BELABOX/belacoder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
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 | ||
|
||
RUN git clone https://github.com/irlserver/srt.git | ||
RUN cd srt | ||
|
||
RUN mkdir /out | ||
RUN cmake -DCMAKE_INSTALL_PREFIX=/usr ./srt | ||
RUN make -j | ||
RUN make DESTDIR=/out install | ||
|
||
|
||
WORKDIR /belacoder | ||
COPY . . | ||
|
||
RUN mkdir /bela-out | ||
RUN make -j | ||
RUN make DESTDIR=/bela-out | ||
|
||
FROM scratch AS export | ||
COPY --from=build /bela-out / |