mirror of https://github.com/ossrs/srs.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
581 B
Docker
22 lines
581 B
Docker
FROM ossrs/srs:ubuntu20-cache
|
|
|
|
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
|
|
|
|
# Build and install SRS.
|
|
COPY . /srs
|
|
WORKDIR /srs/trunk
|
|
|
|
# Note that we must enable the gcc7 or link failed.
|
|
RUN ./configure --srt=on --gb28181=on --apm=on --h265=on --utest=on --gcov=on --sanitizer=on
|
|
RUN make utest ${MAKEARGS}
|
|
|