mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 20:01:56 +00:00
12 lines
345 B
Text
12 lines
345 B
Text
FROM ossrs/srs:dev-gcc7
|
|
|
|
# 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 --utest=on --gcov=on --jobs=2
|
|
RUN scl enable devtoolset-7 -- make -j2 utest
|