Dockerfile.builds 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. ########################################################
  2. FROM ossrs/srs:dev AS centos7-baseline
  3. COPY . /srs
  4. RUN cd /srs/trunk && ./configure --jobs=2 && make -j2
  5. FROM ossrs/srs:dev AS centos7-no-webrtc
  6. COPY . /srs
  7. RUN cd /srs/trunk && ./configure --jobs=2 --rtc=off && make -j2
  8. FROM ossrs/srs:dev AS centos7-no-asm
  9. COPY . /srs
  10. RUN cd /srs/trunk && ./configure --jobs=2 --nasm=off --srtp-nasm=off && make -j2
  11. FROM ossrs/srs:dev AS centos7-srt
  12. COPY . /srs
  13. RUN cd /srs/trunk && ./configure --jobs=2 --srt=on && make -j2
  14. FROM ossrs/srs:dev AS centos7-ansi-no-ffmpeg
  15. COPY . /srs
  16. RUN cd /srs/trunk && ./configure --jobs=2 --cxx11=off --cxx14=off --ffmpeg-fit=off && make -j2
  17. ########################################################
  18. FROM ossrs/srs:dev6 AS centos6-baseline
  19. COPY . /srs
  20. RUN cd /srs/trunk && ./configure --jobs=2 && make -j2
  21. ########################################################
  22. FROM ossrs/srs:dev8 AS centos8-baseline
  23. COPY . /srs
  24. RUN cd /srs/trunk && ./configure --jobs=2 && make -j2
  25. FROM ossrs/srs:dev8 AS centos8-srt
  26. COPY . /srs
  27. RUN cd /srs/trunk && ./configure --jobs=2 --srt=on && make -j2
  28. ########################################################
  29. FROM ossrs/srs:ubuntu16 AS ubuntu16-baseline
  30. COPY . /srs
  31. RUN cd /srs/trunk && ./configure --jobs=2 && make -j2
  32. FROM ossrs/srs:ubuntu16 AS ubuntu16-srt
  33. COPY . /srs
  34. RUN cd /srs/trunk && ./configure --jobs=2 --srt=on && make -j2
  35. ########################################################
  36. FROM ossrs/srs:ubuntu18 AS ubuntu18-baseline
  37. COPY . /srs
  38. RUN cd /srs/trunk && ./configure --jobs=2 && make -j2
  39. FROM ossrs/srs:ubuntu18 AS ubuntu18-srt
  40. COPY . /srs
  41. RUN cd /srs/trunk && ./configure --jobs=2 --srt=on && make -j2
  42. ########################################################
  43. FROM ossrs/srs:ubuntu20 AS ubuntu20-baseline
  44. COPY . /srs
  45. RUN cd /srs/trunk && ./configure --jobs=2 && make -j2
  46. FROM ossrs/srs:ubuntu20 AS ubuntu20-srt
  47. COPY . /srs
  48. RUN cd /srs/trunk && ./configure --jobs=2 --srt=on && make -j2
  49. ########################################################
  50. FROM ossrs/srs:ubuntu16 AS ubuntu16-cross-armv7
  51. COPY . /srs
  52. RUN cd /srs/trunk && ./configure --jobs=2 --cross-build --cc=arm-linux-gnueabihf-gcc --cxx=arm-linux-gnueabihf-g++ \
  53. --ar=arm-linux-gnueabihf-ar --ld=arm-linux-gnueabihf-ld --randlib=arm-linux-gnueabihf-randlib && make -j2
  54. FROM ossrs/srs:ubuntu16 AS ubuntu16-cross-aarch64
  55. COPY . /srs
  56. RUN cd /srs/trunk && ./configure --jobs=2 --cross-build --cc=aarch64-linux-gnu-gcc --cxx=aarch64-linux-gnu-g++ \
  57. --ar=aarch64-linux-gnu-ar --ld=aarch64-linux-gnu-ld --randlib=aarch64-linux-gnu-randlib && make -j2