Files
srs/trunk/Dockerfile.builds

72 lines
3.0 KiB
Docker
Raw Normal View History

2021-08-15 21:51:50 +08:00
########################################################
2022-08-13 10:27:14 +08:00
FROM ossrs/srs:dev-cache AS centos7-baseline
2021-08-15 21:51:50 +08:00
COPY . /srs
2025-10-14 21:56:53 -04:00
RUN cd /srs/trunk && ./configure --sanitizer=on --srt=off --gb28181=off && make
2021-08-15 21:51:50 +08:00
2022-08-13 10:27:14 +08:00
FROM ossrs/srs:dev-cache AS centos7-no-webrtc
2021-08-15 21:51:50 +08:00
COPY . /srs
2025-10-14 21:56:53 -04:00
RUN cd /srs/trunk && ./configure --sanitizer=on --srt=off --gb28181=off --rtc=off && make
2021-08-15 21:51:50 +08:00
2022-08-13 10:27:14 +08:00
FROM ossrs/srs:dev-cache AS centos7-no-asm
2021-08-15 21:51:50 +08:00
COPY . /srs
2025-10-14 21:56:53 -04:00
RUN cd /srs/trunk && ./configure --sanitizer=on --srt=off --gb28181=off --nasm=off --srtp-nasm=off && make
2021-08-15 21:51:50 +08:00
FROM ossrs/srs:dev-cache AS centos7-all
2021-08-15 21:51:50 +08:00
COPY . /srs
2025-10-14 21:56:53 -04:00
RUN cd /srs/trunk && ./configure --sanitizer=on --srt=on --gb28181=on --apm=on --h265=on && make
2021-08-15 21:51:50 +08:00
2022-08-13 10:27:14 +08:00
FROM ossrs/srs:dev-cache AS centos7-ansi-no-ffmpeg
2021-08-15 21:51:50 +08:00
COPY . /srs
2025-10-14 21:56:53 -04:00
RUN cd /srs/trunk && ./configure --sanitizer=on --srt=off --gb28181=off --cxx11=off --cxx14=off --ffmpeg-fit=off && make
2021-08-15 21:51:50 +08:00
########################################################
2022-08-13 10:27:14 +08:00
FROM ossrs/srs:ubuntu16-cache AS ubuntu16-baseline
2021-08-15 21:51:50 +08:00
COPY . /srs
2025-10-14 21:56:53 -04:00
RUN cd /srs/trunk && ./configure --sanitizer=on --srt=off --gb28181=off && make
2021-08-15 21:51:50 +08:00
FROM ossrs/srs:ubuntu16-cache AS ubuntu16-all
2021-08-15 21:51:50 +08:00
COPY . /srs
2025-10-14 21:56:53 -04:00
RUN cd /srs/trunk && ./configure --sanitizer=on --srt=on --gb28181=on && make
2021-08-15 21:51:50 +08:00
########################################################
2022-08-13 10:27:14 +08:00
FROM ossrs/srs:ubuntu18-cache AS ubuntu18-baseline
2021-08-15 21:51:50 +08:00
COPY . /srs
2025-10-14 21:56:53 -04:00
RUN cd /srs/trunk && ./configure --sanitizer=on --srt=off --gb28181=off && make
2021-08-15 21:51:50 +08:00
FROM ossrs/srs:ubuntu18-cache AS ubuntu18-all
2021-08-15 21:51:50 +08:00
COPY . /srs
2025-10-14 21:56:53 -04:00
RUN cd /srs/trunk && ./configure --sanitizer=on --srt=on --gb28181=on && make
2021-08-15 21:51:50 +08:00
########################################################
2022-08-13 10:27:14 +08:00
FROM ossrs/srs:ubuntu20-cache AS ubuntu20-baseline
2021-08-15 21:51:50 +08:00
COPY . /srs
2025-10-14 21:56:53 -04:00
RUN cd /srs/trunk && ./configure --sanitizer=on --srt=off --gb28181=off && make
2021-08-15 21:51:50 +08:00
2025-10-28 09:34:36 -04:00
FROM ossrs/srs:ubuntu20-cache AS ubuntu20-default
COPY . /srs
# Remove the ST from cache, which build with sanitizer, but we are not by default.
RUN cd /usr/local/srs-cache/srs/trunk && rm -rf objs/Platform-*/3rdparty/st && du -sh objs/Platform-*/3rdparty/*
RUN cd /srs/trunk && ./configure && make
FROM ossrs/srs:ubuntu20-cache AS ubuntu20-all
2021-08-15 21:51:50 +08:00
COPY . /srs
2025-10-14 21:56:53 -04:00
RUN cd /srs/trunk && ./configure --sanitizer=on --srt=on --gb28181=on --apm=on --h265=on && make
2021-08-15 21:51:50 +08:00
########################################################
FROM ossrs/srs:ubuntu16-cache-cross-arm AS ubuntu16-cache-cross-armv7
2021-08-15 21:51:50 +08:00
COPY . /srs
2025-10-14 21:56:53 -04:00
RUN cd /srs/trunk && ./configure --sanitizer=on --cross-build --cross-prefix=arm-linux-gnueabihf- && make
2021-08-15 21:51:50 +08:00
FROM ossrs/srs:ubuntu16-cache-cross-aarch64 AS ubuntu16-cache-cross-aarch64
2021-08-15 21:51:50 +08:00
COPY . /srs
2025-10-14 21:56:53 -04:00
RUN cd /srs/trunk && ./configure --sanitizer=on --cross-build --cross-prefix=aarch64-linux-gnu- && make
2022-08-12 20:12:13 +08:00
########################################################
FROM ossrs/srs:ubuntu20-cache-cross-arm AS ubuntu20-cache-cross-armv7
2022-08-12 20:12:13 +08:00
COPY . /srs
2025-10-14 21:56:53 -04:00
RUN cd /srs/trunk && ./configure --sanitizer=on --cross-build --cross-prefix=arm-linux-gnueabihf- && make
2022-08-12 20:12:13 +08:00
FROM ossrs/srs:ubuntu20-cache-cross-aarch64 AS ubuntu20-cache-cross-aarch64
2022-08-12 20:12:13 +08:00
COPY . /srs
2025-10-14 21:56:53 -04:00
RUN cd /srs/trunk && ./configure --sanitizer=on --cross-build --cross-prefix=aarch64-linux-gnu- && make