2
0

Dockerfile.test 864 B

1234567891011121314151617181920212223242526
  1. FROM ossrs/srs:ubuntu20-cache
  2. ARG MAKEARGS
  3. RUN echo "MAKEARGS: ${MAKEARGS}"
  4. # https://serverfault.com/questions/949991/how-to-install-tzdata-on-a-ubuntu-docker-image
  5. ENV DEBIAN_FRONTEND noninteractive
  6. # For go to build and run utest.
  7. ENV PATH $PATH:/usr/local/go/bin
  8. RUN apt update -y && apt install -y gcc make g++ patch unzip perl git libasan5
  9. # Build and install SRS.
  10. COPY . /srs
  11. WORKDIR /srs/trunk
  12. # Note that we must enable the gcc7 or link failed.
  13. # Please note that we must disable the ffmpeg-opus, as it negatively impacts performance. We may consider
  14. # enabling it in the future when support for multi-threading transcoding is available.
  15. RUN ./configure --srt=on --gb28181=on --srt=on --apm=on --h265=on --utest=on --ffmpeg-opus=off --build-cache=on
  16. RUN make utest ${MAKEARGS}
  17. # Build benchmark tool.
  18. RUN cd 3rdparty/srs-bench && make ${MAKEARGS}