FROM ubuntu:18.04

RUN apt -y update

RUN apt install -y git python-dev gcc

RUN git clone https://github.com/winlinvip/simple-rtmp-server

WORKDIR /simple-rtmp-server/trunk

RUN ./configure

RUN make

COPY origin.conf conf/srs.conf

# COPY edge.conf conf/edge.conf

ENV TZ=Asia/Taipei

CMD ./objs/srs -c conf/srs.conf
