ZLMediaKit/docker/ubuntu18.04/Dockerfile.devel

46 lines
1.1 KiB
Docker
Raw Normal View History

FROM ubuntu:18.04
LABEL maintainer "Gemfield <gemfield@civilnet.cn>"
#shell,rtmp,rtsp,rtsps,http,https,rtp
2019-11-08 16:50:23 +08:00
EXPOSE 9000/tcp
EXPOSE 1935/tcp
EXPOSE 554/tcp
EXPOSE 322/tcp
EXPOSE 80/tcp
EXPOSE 443/tcp
EXPOSE 10000/udp
EXPOSE 10000/tcp
2019-11-08 16:50:23 +08:00
RUN apt-get update && \
DEBIAN_FRONTEND="noninteractive" \
apt-get install -y --no-install-recommends \
2019-11-08 16:50:23 +08:00
build-essential \
cmake \
git \
curl \
vim \
2019-11-08 16:50:23 +08:00
ca-certificates \
tzdata \
2019-11-08 16:50:23 +08:00
libssl-dev \
libmysqlclient-dev \
libx264-dev \
libfaac-dev \
2020-04-06 23:52:45 +08:00
ffmpeg \
2019-11-08 16:50:23 +08:00
libmp4v2-dev && \
2020-04-06 23:52:45 +08:00
apt-get autoremove -y && \
apt-get clean -y && \
2019-11-08 16:50:23 +08:00
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 .. && \
2020-04-06 23:52:45 +08:00
make
2019-11-08 16:50:23 +08:00
ENV PATH /opt/media/ZLMediaKit/release/linux/Release:$PATH
2020-04-06 23:52:45 +08:00
CMD MediaServer