Dockerfile 939 Bytes
Newer Older
Gemfield committed
1
FROM ubuntu:16.04
2
#shell,rtmp,rtsp,rtsps,http,https,rtp
Gemfield committed
3 4 5 6 7 8
EXPOSE 9000/tcp
EXPOSE 1935/tcp
EXPOSE 554/tcp
EXPOSE 322/tcp
EXPOSE 80/tcp
EXPOSE 443/tcp
9 10
EXPOSE 10000/udp
EXPOSE 10000/tcp
Gemfield committed
11 12 13 14 15 16

RUN apt-get update && apt-get install -y --no-install-recommends \
         build-essential \
         cmake \
         git \
         curl \
17
         vim \
Gemfield committed
18
         ca-certificates \
19
         tzdata \
Gemfield committed
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
         libssl-dev \
         libmysqlclient-dev \
         libx264-dev \
         libfaac-dev \
         libmp4v2-dev && \
    rm -rf /var/lib/apt/lists/*

RUN mkdir -p /opt/media

WORKDIR /opt/media
RUN git clone --depth=1 https://github.com/xiongziliang/ZLMediaKit && \
    cd ZLMediaKit && git submodule update --init --recursive && \
    mkdir -p build release/linux/Release/

WORKDIR /opt/media/ZLMediaKit/build
RUN cmake -DCMAKE_BUILD_TYPE=Release .. && \
    make -j4

ENV PATH /opt/media/ZLMediaKit/release/linux/Release/:$PATH

CMD MediaServer