mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 03:41:55 +00:00
1. Enable sanitizer for utest. 2. Allow auto detect jobs for make. 3. Show more information about build cache.
12 lines
367 B
Text
12 lines
367 B
Text
FROM ossrs/srs:dev-gcc7-cache
|
|
|
|
# Install depends tools.
|
|
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 --utest=on --gcov=on --sanitizer=off
|
|
RUN scl enable devtoolset-7 -- make utest
|