Dockerfile.test 617 B

123456789101112131415161718192021222324
  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. RUN ./configure --srt=on --gb28181=on --apm=on --utest=on
  14. RUN make utest ${MAKEARGS}
  15. # Build benchmark tool.
  16. RUN cd 3rdparty/srs-bench && make ${MAKEARGS}