FROM ossrs/srs:dev-gcc7-cache RUN yum install -y gcc make gcc-c++ patch unzip perl git # Build and install SRS. COPY . /srs WORKDIR /srs/trunk # Note that we must enable the gcc7 or link failed. RUN scl enable devtoolset-7 -- ./configure --srt=on --gb28181=on --apm=on --h265=on --utest=on RUN scl enable devtoolset-7 -- make utest # Build benchmark tool. RUN cd 3rdparty/srs-bench && make # Run utest RUN ./objs/srs_utest