-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile.fragconsole
25 lines (24 loc) · 1.02 KB
/
Dockerfile.fragconsole
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
FROM alpine:latest as build
RUN apk update &&\
apk upgrade &&\
apk add --no-cache linux-headers alpine-sdk cmake tcl openssl-dev zlib-dev yasm x264-dev x265-dev go libsrt-dev numactl-dev
WORKDIR /tmp
RUN git clone https://github.com/ravenium/fragconsole.git
RUN git clone https://github.com/FFmpeg/FFmpeg.git
RUN mkdir /opt/ffmpeg
WORKDIR /tmp/fragconsole
RUN go build
WORKDIR /tmp/FFmpeg
RUN ./configure --enable-libsrt --enable-libx264 --enable-gpl --enable-libx265 --enable-ffplay --pkg-config-flags="--static" --enable-static --prefix=/opt/ffmpeg && make && make install
FROM alpine:latest
ENV LD_LIBRARY_PATH /lib:/usr/lib:/usr/local/lib64
RUN apk update &&\
apk upgrade &&\
apk add --no-cache libstdc++ x264-libs x265-libs libsrt libsrt-progs numactl &&\
mkdir -p /conf /logs /record /opt/ffmpeg
COPY --from=build /tmp/fragconsole/fragconsole /usr/local/bin/
COPY --from=build /opt/ffmpeg/ /opt/ffmpeg/
ENV PATH "$PATH:/opt/ffmpeg/bin"
EXPOSE 3000
EXPOSE 1935/udp
ENTRYPOINT [ "fragconsole","-recpath","/record"]