2022-12-31 17:15:07 +08:00
|
|
|
FROM ossrs/srs:ubuntu20-cache
|
2021-08-15 19:01:55 +08:00
|
|
|
|
2022-12-31 17:15:07 +08:00
|
|
|
ARG MAKEARGS
|
|
|
|
|
RUN echo "MAKEARGS: ${MAKEARGS}"
|
|
|
|
|
|
|
|
|
|
# https://serverfault.com/questions/949991/how-to-install-tzdata-on-a-ubuntu-docker-image
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
|
|
|
|
|
# For go to build and run utest.
|
|
|
|
|
ENV PATH $PATH:/usr/local/go/bin
|
|
|
|
|
|
|
|
|
|
RUN apt update -y && apt install -y gcc make g++ patch unzip perl git libasan5
|
2021-08-15 19:01:55 +08:00
|
|
|
|
|
|
|
|
# Build and install SRS.
|
|
|
|
|
COPY . /srs
|
|
|
|
|
WORKDIR /srs/trunk
|
2022-03-17 16:56:52 +08:00
|
|
|
|
|
|
|
|
# Note that we must enable the gcc7 or link failed.
|
2025-10-14 20:26:11 -04:00
|
|
|
# Enable sanitizer explicitly for coverage testing to catch memory issues.
|
2025-09-20 20:58:57 -04:00
|
|
|
RUN ./configure --rtsp=on --srt=on --gb28181=on --apm=on --h265=on --utest=on --gcov=on --sanitizer=on
|
2022-12-31 17:15:07 +08:00
|
|
|
RUN make utest ${MAKEARGS}
|
|
|
|
|
|